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.
 
Back
Top