S
Steve Schroeder
Even though I'm using:
InvoiceDataReader =
adoInvoiceProc.ExecuteReader(CommandBehavior.CloseConnection)
Later I get:
There is already an open DataReader associated with this Connection which
must be closed first.
I'd want to reuse one connection right, and not define a new one for each
DataReader, right? Keep in mind I'm Looping through the result set of one
DataReader, passing on values to another Command/DataReader object for
criteria...but wanted to use the same connection...
Thanks...I can post some code if that would make my point clearer.
Steve
InvoiceDataReader =
adoInvoiceProc.ExecuteReader(CommandBehavior.CloseConnection)
Later I get:
There is already an open DataReader associated with this Connection which
must be closed first.
I'd want to reuse one connection right, and not define a new one for each
DataReader, right? Keep in mind I'm Looping through the result set of one
DataReader, passing on values to another Command/DataReader object for
criteria...but wanted to use the same connection...
Thanks...I can post some code if that would make my point clearer.
Steve