SYSCS_UTIL.SYSCS_GET_DATABASE_NAME system function

The SYSCS_UTIL.SYSCS_GET_DATABASE_NAME function returns the name of the database of the current connection.

Syntax

VARCHAR(32672) SYSCS_UTIL.SYSCS_GET_DATABASE_NAME()

Execute privileges

By default, all users have execute privilege on this function.

SQL example

Retrieve the database name:

VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_NAME();