>How can I store a DB connection string with my C# project? I have different string determined by where I'm working at, so I'd like make it work around that.
If you have a Windows Forms application and want to use App.Config file (I strongly suggest), see
http://www.emoreau.com/Entries/Articles/2007/03/AppSettings-revisited.aspx.
In my apps, I have an App.Config file containing encrypted connection strings for all my environments. I have a login screen where the user can select the environment where he wants to work (Prod/Test) and I used a suffix to pick the right connection string.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com