Re: ADO.NET and Dispose

Dan Green <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.general
Organization http://dotnetdan.com
Message-ID <016d01c21380$cc781a80$0100000a@dgserver>
> Dispose() also clears the connection string.

Does that have an affect on the connection pool?


Dan Green
[ http://dotnetdan.com -- putting the dan in .net ]

> -----Original Message-----
> From: The DOTNET list will be retired 7/1/02
> [mailto:[email protected]] On Behalf Of Ian Griffiths
> Sent: Friday, 14 June 2002 6:37 PM
> To: [email protected]
> Subject: Re: [DOTNET] ADO.NET and Dispose
>
> "Kevin E. Kenny" <[email protected]> wrote:
>
> > Where there is a Close() it will invariably call Dispose().
>
> For SqlConnection that's not quite true.  Close() doesn't call
Dispose().
> But Dispose() does call Close().  Dispose() also clears the connection
> string.
>
>
> --
> Ian Griffiths
> DevelopMentor
>
> You can read messages from the DOTNET archive, unsubscribe from
DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.