Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Store Connection String
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01358780
Message ID:
01358866
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform