VistaDB 6
VistaDB.Provider Namespace / VistaDBDataReader Class / RecordsAffected Property


In This Topic
    RecordsAffected Property (VistaDBDataReader)
    In This Topic
    Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.Gets the number of rows changed, inserted, or deleted by execution of the SQL statement. This will be set to 0 if no rows were affected or the statement failed. This value shall be set to -1 for SELECT statements according to the IDataReader.RecordsAffected property.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable ReadOnly Property RecordsAffected As System.Integer
    'Usage
     
    
    Dim instance As VistaDBDataReader
    Dim value As System.Integer
     
    value = instance.RecordsAffected
    public override System.int RecordsAffected {get;}

    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
    This will be set to 0 if no rows were affected or the statement failed. This value shall be set to -1 for SELECT statements according to the IDataReader.RecordsAffected property.
    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

    Reference

    VistaDBDataReader Class
    VistaDBDataReader Members
    System.Data.IDataReader.RecordsAffected