Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more: , +
Is it okay to have 2 database for one single website?

if yes than how to deploy two different databases for same website on live server?
Posted

1 solution

There should be no problem if you keep two databases for a given website. All you need is two databases deployed and a valid connection string pointing to them.

This can be done for some scenarios, like you want to store one type of data in DB1 and other type in DB2. All you would need is to place a code for picking the defined connection string for a particular scenario. (Though you need to pick why you need two DB's!)

Apart from this, the connection/deployment is same as what you do for one database.
 
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