> is a reader automaticaly disposed if the connection it is associated
> with is closed?
I don't think so. But if you create the reader with
CommandBehavior.CloseConnection, the connection is automatically closed
when you dispose/close the reader.
Ben
Scott M. - 19 Sep 2007 02:17 GMT
This is correct. If you want to dispose of the reader, you either have to
manually dispose it or (with VB .NET 2005 or C#) use a "using" statement.
>> is a reader automaticaly disposed if the connection it is associated
>> with is closed?
[quoted text clipped - 4 lines]
>
> Ben