A
Andrew Meador - ASCPA, MCSE, MCP+I, Network+, A+
I have a loop that is parsing the rows of a table, under certain
circumstances, I need to query another table with a value from the
table that the reader is parsing, but when I try to create another
sqlcommand to run the query against the other table, it say that there
is another object that has the sqlconnection open and must be closed
first. How do I get around this. I assumt the reader loop is what has
the sqlconnection open, which is fine, but how do I run another querry
from within the loop?
Thanks in advance!
circumstances, I need to query another table with a value from the
table that the reader is parsing, but when I try to create another
sqlcommand to run the query against the other table, it say that there
is another object that has the sqlconnection open and must be closed
first. How do I get around this. I assumt the reader loop is what has
the sqlconnection open, which is fine, but how do I run another querry
from within the loop?
Thanks in advance!