DB_PROPERTY function [System]

Function

Returns the value of the given property.

Syntax

DB_PROPERTY ( { property-id | property-name }
[ , { database-id | database-name } ] )

NoteCIS functional compensation performance considerations apply. See “Conditions that cause processing by SQL Anywhere” in Chapter 3, “Optimizing Queries and Deletions,” in the Performance and Tuning Guide.

Parameters

property-id The database property ID.

property-name The database property name.

database-id The database ID number, as returned by DB_ID. Typically, the database name is used.

database-name The name of the database, as returned by DB_NAME.

Example

The following statement returns the page size of the current database, in bytes.

SELECT DB_PROPERTY( 'PAGESIZE' ) FROM iq_dummy

Usage

Returns a string. The current database is used if the second argument is omitted.

Standards and compatibility

See also

“Properties available for each database”

“DB_ID function [System]”

“DB_NAME function [System]”