RecordsAffected property

Returns the number of rows changed, inserted, or deleted by the execution of the SQL statement.

 Visual Basic syntax
 C# syntax
 Remarks