I have a fairly large webapp which is used by many customers. Each customer has its own database.
I want to use the same webapp for all of the customers, but they still need to have separate databases and thus different connection strings.
What is the best way to do this?
I thought of this approach:
1. One database contains a table called Customers. This table contains all customers and what their connection string is.
2. When a customer is accessing the webapp, they should also provide their customerId (http://server/webapp/Default.aspx?customerid=xx)
3. Then i will retrive the connection String attributes from the Main database and will store in the session and its working finr.
But i think this is not a good solution. So can anyone suggest solution.
Thanks in advance.