Using ExecuteNonQuery , it will not return rows; any output parameters or return values ββassociated with parameters are filled with data.
For UPDATE, INSERT, and DELETE statements, the return value is the number of rows affected by the command.
EDIT:
You can ask the user how
Dim RowsAffected as Integer = Command.ExecuteNonQuery() MsgBox("The no.of rows effected by update query are " & RowsAffected.ToString)
source share