Knight Data Access Layer
CountRecordsInTable Method (BaseOracleProvider)




KellermanSoftware.NetDataAccessLayer.Providers Namespace > BaseOracleProvider Class : CountRecordsInTable Method
The name of the table
Get the number of records in a table
Syntax
Public Overrides Function CountRecordsInTable( _
   ByVal tableName As String _
) As Long
Dim instance As BaseOracleProvider
Dim tableName As String
Dim value As Long
 
value = instance.CountRecordsInTable(tableName)
public override long CountRecordsInTable( 
   string tableName
)
public: long CountRecordsInTable( 
   string* tableName
) override 
public:
int64 CountRecordsInTable( 
   String^ tableName
) override 

Parameters

tableName
The name of the table
Remarks
Uses: SELECT NUM_ROWS FROM ALL_TABLES WHERE TABLE_NAME = '{tableName}'; See: https://stackoverflow.com/questions/1840538/faster-alternative-in-oracle-to-select-count-from-sometable
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

BaseOracleProvider Class
BaseOracleProvider Members