Click here to Skip to main content
15,921,548 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how make connection string works with any server name
Posted

This is a nonsensical question. You must supply the server name in some fashion. Whether it is having multiple connection strings or dynamically adding the server to one. There is no such thing as a one size fits all connection string.
 
Share this answer
 
Hi,
You can make your connection string work computer independent.
Check out this:How to make connection string computer independent[^]
Connection String[^]
http://help.godaddy.com/article/689[^]
 
Share this answer
 
Comments
[no name] 20-Jan-12 11:05am    
The first only works for localhost, not very useful when the database is on a separate machine.
The second does nothing more than then construct a string
The third is completely useless

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900