RecordsAffected property

Returns the number of rows changed, inserted, or deleted by execution of the SQL statement. For SELECT statements or CommandType.TableDirect tables, this value is -1.

Syntax
Visual Basic
Public Overrides Readonly Property RecordsAffected As Integer
C#
public override int RecordsAffected { get;}
Property value

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

See also