Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically select database
Message
De
13/11/2013 09:54:20
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 5.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01587897
Message ID:
01587899
Vues:
45
We give then a different URL. In fact, the test web and db servers are different machines than the production servers. You need some way for the user to know what database they're on at all times so they don't put test data into the production db and vice-versa.


>Hello all,
>
>Can anybody give me some guidance on programatically selecting a different connection string for my web application. I want to be able to give the users a choice of picking a test/demo database vs. a production database. I want the code base to obviously be the same, but the database selected to be different.
>
>How this gets accomplished is not as important, i.e. does the user just use a different URL to get to the app. Or do they use the same URL, but first get a choice as to what database they want to access, etc.
>
>This is probably not a MM.NET related issue but I put it in this category as the application is built using MM.NET.
>
>TIA
>
>Bob
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform