Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set connection string using config file
Message
De
21/03/2008 08:50:54
 
 
À
20/03/2008 16:07:00
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
01303511
Message ID:
01304301
Vues:
19
>My question is how can I globally change each tableadapter to point to a specific connection string?
>
>For example, I might want to switch from PROD to the DEV database connection string. I might have 20 tableadapters, changing each one using the property sheet is not desirable.
>
>Isn't there a global way to do this?

Well, now I understand what you are trying to do.
If you want to switch between different databases, the connectionstring itself is the place for that.
Your tableadapters should always point to the same connectionstring definition of your app.config.
To switch to a different database, just change the connectionstring in your app.config.
Holger Vorberg
Germany
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform