RecordsAffected property

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

 Visual Basic syntax
 C# syntax
 Remarks