Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
Syntax
Visual Basic (Declaration) | |
---|
Public Overrides ReadOnly Property RecordsAffected As Integer
|
C# | |
---|
public override int RecordsAffected {get;}
|
C++/CLI | |
---|
public:
property int RecordsAffected {
int get() override;
}
|
Property Value
The number of rows changed, inserted, or deleted. -1 for SELECT statements; 0 if no rows were affected or the statement failed.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also