Retrieves information about a single currently defined table space.
In a partitioned database environment, only the table spaces on the current database partition are listed.
Database
sqlutil.h
SQL_API_RC SQL_API_FN
sqlbstpq (
struct sqlca * pSqlca,
sqluint32 TablespaceId,
struct SQLB_TBSPQRY_DATA * pTablespaceData,
sqluint32 reserved);
SQL_API_RC SQL_API_FN
sqlgstpq (
struct sqlca * pSqlca,
sqluint32 TablespaceId,
struct SQLB_TBSPQRY_DATA * pTablespaceData,
sqluint32 reserved);
This API retrieves information about a single table space if the table space identifier to be queried is known. This API provides an alternative to the more expensive OPEN TABLESPACE QUERY, FETCH, and CLOSE combination of APIs, which must be used to scan for the required table space when the table space identifier is not known in advance. The table space IDs can be found in the system catalogs. No agent snapshot is taken; since there is only one entry to return, it is returned directly.