Home All Groups Group Topic Archive Search About
Author
22 Jan 2006 8:25 AM
Agnes
Silly question again. I found that Even I run Sqlcommand.dispose,
I still can use it , does anyone know ?

Author
22 Jan 2006 3:53 PM
David Browne
"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:eswUp1yHGHA.1132@TK2MSFTNGP10.phx.gbl...
> Silly question again. I found that Even I run Sqlcommand.dispose,
> I still can use it , does anyone know ?
>

The consequences of using a disposed object are undocumented, and liable to
change in future releases.  So I wouldn't rely on the fact that SqlCommand
doesn't really do anyting when you Dispose it.

David