Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to check for and/or create connection to DB
Message
De
07/01/2013 15:35:36
 
 
À
07/01/2013 14:40:56
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01561620
Message ID:
01561633
Vues:
48
>Mayhaps I'm overthinking it again,and I'll grant that perhaps part of my problem is that I'm STILL waiting for .Net to become all that much better and I keep getting lost in the stupid dots but here we go.
>
>Is it better to
>a) Create/Open/Close as DB connection everytime I need one,
>b) can I just create one in the signon screen that will persist through to the DispQuestions screen, or
>c) Create/Open/Close DB connection on Signon screen and then one for the DispQuestions screen.
>
>Thanks
>
>Dorris


Open/Close as needed. This explains why.

http://msdn.microsoft.com/en-us/library/8xx3tyca.aspx
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform