Try OpenEdge Now
skip to main content
SQL Reference
SQL Reference : OpenEdge SQL Functions : DATABASE
 

DATABASE

Returns the name of the database corresponding to the current connection name. This function takes no arguments, and the trailing parentheses are optional.

Syntax

DATABASE [ ( ) ]

Example

The following example shows how to use the DATABASE function:
select database() from t2;
DATABASE
--------
steel
1 record selected

Compatibility

ODBC compatible