|
Returns statistical information on a given table including whether its data file is using compressed data pages. See also Creating a File with Page Level Compression in Pervasive PSQL Programmer's Guide and Record and Page Compression in Advanced Operations Guide.
Header file: DDF.HRequires: W3DBAV90.DLL or higher version
PRESULT DDFAPICALLTYPE PvGetTableStat2 ( BTI_WORD dbHandle, const BTI_CHAR* tableName, TABLESTAT* tableStat);
|
In
|
dbHandle
|
Handle of an open database returned by PvOpenDatabase().
|
|
In
|
tableName
|
Table name for which you want statistical information.
|
|
Out
|
tableStat
|
TABLESTAT structure containing table statistics information.
|
|
PCM_Success
|
The operation was successful.
|
|
PCM_errFailed
|
The operation was not successful.
|
|
PCM_errMemoryAllocation
|
An error occurred during memory allocation.
|
|
PCM_errInvalidDictionaryHandle
|
The specified dictionary handle obtained by PvOpenDictionary() or PvOpenDatabase() is invalid.
|
|
PCM_errTableNotFound
|
The specified table was not found
|
You must first obtain a database handle using PvOpenDatabase().
You can retrieve more information about a specific table using PvGetTable().
For more information see Differences Between TABLESTAT2 and TABLESTAT .
PvGetTableStat()
PvStart()
PvOpenDictionary()
PvOpenDatabase()
PvGetTable()
PvFreeTable()
PvFreeTableNames()
PvCloseDictionary()
PvCloseDatabase()
PvStop()
|
Chapter contents
Prev topic: PvGetTableStat()
|