Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - SQL Reference » SQL Functions » Alphabetical list of functions

DB_NAME function [System] Next Page

DB_PROPERTY function [System]


Returns the value of the given property.

Syntax

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

Parameters

property-id    The database property ID.

property-name    The database property name.

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

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

Remarks

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

See also
Standards and compatibility
Example

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

SELECT DB_PROPERTY( 'PAGESIZE' );