RecordsAffected property

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

 Visual Basic syntax
 C# syntax
 Remarks