Click here to Skip to main content
16,011,744 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
I want to switch databases for my web application dynamically or say i want to use two different databases in same application having some table names in common.So i want to pass database name from front end once like [dbname.dbo.] and store it for the whole application usage.where should i store it? Cache,session,Application,global.asax etc.please suggest me something.

Thanks in advance....
Posted
Updated 1-Dec-13 22:09pm
v2

Web.config is the usual solution, even the db is changed in file, it still work without re-build it again.
 
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