.NET Framework (current version)
Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
System.Data.OracleClient (in System.Data.OracleClient.dll)
Public Overrides ReadOnly Property RecordsAffected As Integer
The number of rows changed, inserted, or deleted. -1 for SELECT statements; 0 if no rows were affected, or the statement failed.
The RecordsAffected property is not set until all rows are read and you close the OracleDataReader.
IsClosed and RecordsAffected are the only properties that you can call after the OracleDataReader is closed.
Return to top
Available since 1.1