Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlGetUsername

Retrieve the current username.

Declaration

CTSQLCHAR* ctsqlGetUsername(pCTSQLCONN hConn)

Description

ctsqlGetUsername() retrieves the current username.

  • hConn the connection handle.

Return

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

See Also

ctsqlConnect(), ctsqlGetDatabase()

TOCIndex