Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using a database in SQL to store the details of diff vehicles and I'm accessing it using asp.net website.

Is it possible to use the same name for the connection strings, for all the connections that I'm making with this database?? Pls help.............
Posted

Your question is not quite clear. But it sounds like you want to know if you can use the same connection string name for accessing the database multiple times. If so, asnwer is YES.

The thing is, you need to have a connection string defined. You can use it any number of times you want to connect it to same database.

The moment there is a change in database server or the database name itself, then you would need a new connection string.
 
Share this answer
 
Comments
jasminkp 5-Sep-10 3:26am    
yes
thank you... I was using too man connection strings and when i was trying to build the website the database was not comming automaticalyy to the appdata folder. So am trying it out with single connection string.

Hope it will work
 
Share this answer
 

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