sa_db_properties system procedure

Reports database property information.

Syntax

sa_db_properties( [ dbidparm ] )

Arguments

Result set

Column name Data type Description
Number INTEGER The database ID number.
PropNum INTEGER The database property number.
PropName VARCHAR(255) The database property name.
PropDescription VARCHAR(255) The database property description.
Value LONG VARCHAR The database property value.

Remarks

If you specify a database ID, the sa_db_properties system procedure returns the database ID number and the PropNum, PropName, PropDescription, and Value for each available database property. Values are returned for all database properties and statistics related to databases. Valid properties with NULL values are also returned.

If dbidparm is not specified, properties for all databases are returned.

Because of tenant database isolation rules, when this system procedure is run in the cloud it returns only information about the current tenant database.

Permissions

None

Side effects

None

Example

The following example uses the sa_db_properties system procedure to return a result set summarizing database property information for all databases.

CALL sa_db_properties( );
Number PropNum PropName ...
0 0 ConnCount ...
0 1 IdleCheck ...
0 2 IdleWrite ...
... ... ... ...