Close reader before closing connection

Posted by Dan on Stack Overflow See other posts from Stack Overflow or by Dan
Published on 2010-03-25T21:07:11Z Indexed on 2010/03/25 21:23 UTC
Read the original article Hit count: 374

Filed under:
|
|

Should you always close a DataReader before closing the connection, or is it okay to just close the connection? By just closing the connection does that effectively close the reader?

(This is for c#.net 3.5)

Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET