Fetches a specified number of rows of table space query data, each row consisting of data for a table space.
Scope
In a partitioned database server environment, only the table spaces on the current node are listed.
Authorization
One of the following:
Required Connection
Database
Version
sqlutil.h
C API Syntax
/* File: sqlutil.h */ /* API: Fetch Tablespace Query */ /* ... */ SQL_API_RC SQL_API_FN sqlbftpq ( struct sqlca * pSqlca, unsigned long MaxTablespaces, struct SQLB_TBSPQRY_DATA * pTablespaceData, unsigned long * pNumTablespaces); /* ... */ |
Generic API Syntax
/* File: sqlutil.h */ /* API: Fetch Tablespace Query */ /* ... */ SQL_API_RC SQL_API_FN sqlgftpq ( struct sqlca * pSqlca, unsigned long MaxTablespaces, struct SQLB_TBSPQRY_DATA * pTablespaceData, unsigned long * pNumTablespaces); /* ... */ |
API Parameters
Sample Programs
Usage Notes
The user is responsible for allocating and freeing the memory pointed to by the pTablespaceData parameter. This API can only be used after a successful sqlbotsq call. It can be invoked repeatedly to fetch the list generated by sqlbotsq.
For more information, see sqlbotsq - Open Tablespace Query.
See Also
sqlbctsq - Close Tablespace Query
sqlbgtss - Get Tablespace Statistics
sqlbotsq - Open Tablespace Query
sqlbstpq - Single Tablespace Query