I am developing an ASP .NET application on my PC and deploying it on a host.
The application uses a Microsoft SQL DB, I have two databases one local and one on a server.
How should the application be configured so it could connect to both DBs without any code changes? (the 2 databases have identical names and structure)
Thanks
Store the connection string in web.config:
Then in your code: