Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlGetDatabase

Retrieve the current database name.

Declaration

CTSQLCHAR* ctsqlGetDatabase(pCTSQLCONN hConn)

Description

ctsqlGetDatabase() retrieves the current database name.

  • hConn the connection handle.

Return

ctsqlGetDatabase() returns a pointer to the current database name, or NULL if neither a database name is available, nor the connection handle is valid.

See Also

ctsqlConnect(), ctsqlGetUserName()

TOCIndex