Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suggestions for switching database
Message
De
07/09/2008 23:26:34
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Suggestions for switching database
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01345646
Message ID:
01345646
Vues:
49
mm 2.4 mssql 2005
I have a web service that must insert data into the same table in multiple databases. All databases are on the same sql server. I know that I can create multiple connection strings and use the databasekey to select the proper db but new databases are added often and this makes for a maintenence a nightmere. I tried execnonquery("use mydatabase") then and saved a new row but it inserted into the db specified in the connection string. Any suggestions on how to best do this ?
Thanks,
Bill
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform