Re: How many DataReader can be associated a one Connection?
Posted by: Jean-Francois Mathieu
Date: December 29, 2004 08:26AM

The difference is that a recordset get (i think) all the data at one time like the dataset. The datareader start giving you back the data after the first record.

If you whant multiple query on the same connection you have to use datatable ou dataset ou commande beacause they read all/execute the data at a time.

So if you whan you can load in a dataset and loop with a for each instead of a datareader that keep the connection open.

Load Myds
For each row in Myds_table_rows
mycomande.executequery =""
Next

And by the way the dataset is fill by a datareader.

hope it help

Options: ReplyQuote


Subject
Written By
Posted
Re: How many DataReader can be associated a one Connection?
December 29, 2004 08:26AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.