I'm looking to have my application accept a command line argument to specify if the user wants to use the training system or the live system. What is best practive for the db connection string?
Should I store 2 in the config and set the connection string globally based off the command line?
Or can I have 2 config files and switch which I read from?
Help is appreciated!
Separate config files?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Dipal ChoksiRank #199 · 12K reputationPosted May 14, 2008, 8:09 PM EDT
I would store the 2 connection strings in the config file and switch based on the user selection..