sqlcommand.dispose

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Agnes

    #1

    sqlcommand.dispose

    Silly question again. I found that Even I run Sqlcommand.disp ose,
    I still can use it , does anyone know ?



  • David Browne

    #2
    Re: sqlcommand.disp ose


    "Agnes" <agnes@dynamict ech.com.hk> wrote in message
    news:eswUp1yHGH A.1132@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Silly question again. I found that Even I run Sqlcommand.disp ose,
    > I still can use it , does anyone know ?
    >[/color]

    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


    Comment

    Working...