Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When to connect
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Divers
Thread ID:
00978766
Message ID:
00979502
Vues:
25
>In a .Net application, do I want to create a connection
>on application startup, or only when I'm ready to access
>the data?
>
>Thanks

Kevin,

The one thing that hasn't been mentioned here is that, when dealing with the Web, connections are generally stateless. By this, I mean that once the connection has been made and the data pulled back, the connection goes into a pool. Connections in the pool can be re-used as necessary.

I've always believed in a similiar scenario even when dealing with local VFP tables: Open them when you need them. Close them when you don't.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform