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

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?
 
W

William Ryan

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

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top