How can I easily use two different databases for debug and release scenarios?
I don’t want to need to remember to change the data source connection strings every time I publish a new version of my application but I also don’t want to test new code on the working database …
Is there something like a debug / release switch?
If you’re using Visual Studio 2010, Web.config transforms are the way to go.
http://weblogs.asp.net/gunnarpeipman/archive/2009/06/16/visual-studio-2010-web-config-transforms.aspx