Executes the current SQL statement using the current connection and returns the number of rows affected.
[Visual Basic] Public Function ExecuteNonQuery() _ Implements IDbCommand.ExecuteNonQuery As Integer [C#] public int ExecuteNonQuery(); [C++] public: int ExecuteNonQuery(); [JScript] public function ExecuteNonQuery(): int;
Number of rows affected.
| Exception Type | Condition |
|---|---|
| InvalidOperationException | The Connection is not Open. |
| MimerException | A database server error occurred while executing the statement. |
| ArgumentOutOfRangeException | The data value of a parameter value was too large or too small to be converted to the database type. |
| InvalidCastException | The format of the value of one of the Parameters was invalid, or the application data type can not be converted to the target database type. |
MimerCommand Class | Mimer.Data.Client Namespace