Need to close DataReader?

  • Thread starter Thread starter ad
  • Start date Start date
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.
 
Back
Top