Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Process object does not go out of scope
Message
De
01/04/2008 12:41:25
 
 
À
01/04/2008 10:21:52
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01306828
Message ID:
01307410
Vues:
8
>>Why not? Open, Execute, Close. Do it however many times are required. I don't think you will find the overhead to be as high as you fear.
>
>Well, if I need to do 20 SQL commands, it is must better to only have one open and one close.

That's true if you are actually opening and closing a connection each time. In practice you're not - you're just grabbing an existing connection from the pool. If you keep a connection open then it is likely that the pool will actually be forced to open additional *real* connections to handle other requests.

Regards,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform