Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speeding up query
Message
 
To
07/11/2002 15:40:17
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00719885
Message ID:
00720039
Views:
14
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.
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform