What's the recommended way of using to SqlDataReaders in a loop?

  • Thread starter Thread starter Rico Alexander
  • Start date Start date
R

Rico Alexander

When the original has to be open to use its values as a parameter for the
second reader? Is it still possible to use one Connection?
 
Why don't you just use the first reader and load the variable(s) you need
into an arraylist or similar structure. THen, close the reader. Open up
the second one and you already have your value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top