dotConnect for Salesforce Marketing Cloud Documentation
Devart.Common Namespace / DbDataReaderBase Class / RecordsAffected Property

In This Topic
RecordsAffected Property (DbDataReaderBase)
In This Topic
Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
Syntax
'Declaration
 
Public Overrides ReadOnly Property RecordsAffected As Integer
 

Property Value

The number of rows changed, inserted, or deleted. -1 for SELECT statements; 0 if no rows were affected, or the statement failed.
Remarks

The value of this property is not cumulative. For example, if two records are inserted in the first statement in batch mode, and the second statement affected 3 records, the value of RecordsAffected will be 3.

IsClosed and RecordsAffected are the only properties that you can call after the DbDataReaderBase is closed.

See Also