SE_connection_get_default_database

Returns the name of the default database that the user is connected to.

Usage syntax

LONG SE_connection_get_default_database (SE_CONNECTION connection, CHAR *databases );

Parameters
connection The current connection
databases Returns the current database name
Description

SE_connection_get_default_database returns the name of the default database to which the user is connected. For those database management systems that do not support this function, a NULL terminated string is return.

Returns

SE_SUCCESS
SE_FAILURE

SE_DB_IO_ERROR

SE_DBMS_DOES_NOT_SUPPORT

SE_INVALID_CONNECTION

SE_INVALID_POINTER

SE_NET_FAILURE

SE_OUT_OF_CLMEM

SE_OUT_OF_SVMEM

SE_SDE_NOT_STARTED