D
D
Dmitry Gavrilenko2015-03-03 21:17:31
.NET
Dmitry Gavrilenko, 2015-03-03 21:17:31

SqlException: Is there an open DataReader assigned to this Command?

There is a library. It implements the methods of sampling, insertion, and so on.
In client application I do insert, and then select. All without problems.
Further, no matter what request I make, it throws an InvalidOperationException with the message "There is an open DataReader assigned to this Command that needs to be closed first."

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Gavrilenko, 2015-03-03
@Maddox

Just DataReader.Close() didn't.

V
Vitaly Pukhov, 2016-10-07
@Neuroware

Maybe someone will come in handy, if a DataAdapter is used, then a copy of it must be created for each individual thread

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question