title: Difference Between Dispose And nothing
body: <pre><code> **Public Sub ExecuteQuery(ByVal pQueryString As String, Optional ByVal pConn As Odbc.OdbcConnection = Nothing)
  
              Dim Mycmd As New Odbc.OdbcCommand(pQueryString, MyConn)
              Mycmd.ExecuteNonQuery()
              Mycmd.Dispose()
  
      End Sub**
  </code></pre>
  
  <p>Here I am Clear the object using Dispose( Mycmd.Dispose()). Can I Use here Nothing ( Mycmd = Nothing? . Which is the Best ? </p>
  
  <p>Please Help Me Sir,</p>
  
  <p>By</p>
  
  <p>Arul.</p>