Hi djmarquette,
You can make use of the debugging constant DEBUG. You can write code that runs in Debug mode and some other code that runs in Release mode.
You could use that to define a connectionstring, like this:
Code:
string connectionstring = "";
#if DEBUG
connectionstring = "Debug";
#else
connectionstring = "Release";
#endif
Instead of assigning the string directly, you could of course also retrieve it from a configuration file. Just define two connections with different names, and retrieve the appropriate one.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.