Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Speeding up query
Message
De
07/11/2002 16:44:36
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00719885
Message ID:
00720041
Vues:
12
Roger,

Yep ... good point.

~~Bonnie


>If you need to run multiple queries to fill the dataset it's better to open the connection, use the DataAdapters, and then close it. Otherwise you'll be opening and closing the connection multiple times. The DataAdapter will leave the connection in the state it found it.
>
>Roger
>
>>
>>This is only in the case if you explicitly open the connection. If your DataSet is filled with a da.Fill(ds), there's no reason to manually open it *or* close it ... the DataAdapter takes care of that for you.
>>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform