Need to close DataReader?

W

W.G. Ryan eMVP

One way to deal with this is to use the CloseConnection commandbehavior. In
the old days, you needed to close the connection for another reader to use
it. Now with MARS this isn't the case but that doesn't mean you want to
leave it open. When you've retrieved all the records, you want to make sure
the reader is closed. The most important thign to close is the connection
although the DAAB handles this.
 

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

Top