Click here to Skip to main content
15,910,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how many connection strings can i declare in a single web.config in asp.net and how can i use them in an application ?
Posted

You can add the connection string as per your requirement(the number of database connection required) in web.config

XML
<connectionStrings>

<add name="constr1" connectionString="..."/>
<add name="constr2" connectionString="..."/>
<add name="constr3" connectionString="..."/>
<add name="constr4" connectionString="..."/>
...

</connectionStrings>




use proper connection string as per the database you need.
 
Share this answer
 
v2

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