IDbCommand.ExecuteNonQuery

S

Stephen Muecke

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top