Returns the name of the database corresponding to the current connection name.

Syntax

DB_NAME ( )

Example

This example illustrates the DB_NAME function:

SELECT DB_NAME() FROM T2;
 DB_NAME              
-------               
demo              
 1 record selected

Compatibility

Progress extension