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

SQL Anywhere 11.0.0 » SQL Anywhere Server - SQL Reference » Using SQL » SQL functions » Alphabetical list of functions

 

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
  • SQL/2003   Vendor extension.

Example

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

SELECT DB_PROPERTY( 'PageSize' );