IDbCommand.ExecuteNonQuery

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
You need to create a SQLCommand and use the .CommandText property (a SQL
statement or the name of a Strored Procedure)
eg

Dim myCommand as New SQLCommand
With myCommand
.Connection = <your SQLConnection>
.CommandText = "DELETE ..... FROM yourTableName WHERE ..."
End With

myCommand.ExecuteNonQuery

Stephen
 
Back
Top