SE_database_use

Changes the database or data source being used by a connection.

Usage syntax

LONG SE_database_use (SE_CONNECTION connection, CHAR *database);

Parameters
connection The current connection
database The database or data source to change to
Description

SE_database_use changes the database or data source that a connection is using. You can get a list of available databases with SE_database_list. Not all DBMS manufacturers support this functionality.

Returns

SE_SUCCESS
SE_FAILURE

SE_DBMS_DOES_NOT_SUPPORT

SE_INVALID_CONNECTION

SE_INVALID_POINTER

SE_NET_FAILURE

SE_OUT_OF_CLMEM

SE_SDE_NOT_STARTED