I used code below to close connection, is it right?
Try
myConn.Open()
mySQLCommand.ExecuteNonQuery()
Catch ex As Exception
'code to display error message
Finally
myConn.Close()
mySQLCommand.Dispose()
myConn.Dispose()
End Try
Does it need " mySQLCommand.Dispose()"?