Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection string at startup or on request
Message
De
01/04/2003 07:55:49
 
 
À
01/04/2003 02:09:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00772285
Message ID:
00772333
Vues:
14
This is a very common pattern for two-tier application (client/server). On startup the application creates and holds a connection to the server.

On the other hand, most n-tier apps acquire the connection right before it's going to be used and then release it right afterwards. This works especially well if you're using COM+ since it will manage the connection pool.

-Mike


>I was wondering about something. For all of our SQL Server requests, we issue a connection string to get a handle to our database. Only on the first connection, that it will take one or two additional seconds. Then, on all other connections, it goes fast.
>
>Would there be any optimization by only doing that at the startup of the application and then be able to use the handle whenever we need it without having to get a new handle from a connection for each request?
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform