CTSession::SetExclusive
Sets or clears the session exclusive flag.
Declaration
void CTSession::SetExclusive(CTBOOL flag);
Description
CTSession::SetExclusive() sets or clears the session exclusive flag. If a session exclusive flag is set, only one CTSESSION_CTDB or CTSESSION_SQL session will be allowed. Set the session exclusive flag after instantiating a CTSession object, but before performing a logon. Setting the session exclusive flag after a session logon is performed will not have any effect during the current session.
Return
void
Example
// perform an exclusive logon
CTSession hSession(CTSESSION_CTDB);
hSession.SetExclusive(YES);
hSession.Logon("FAIRCOM", "ADMIN", "ADMIN");
See Also
CTSession::IsExclusive(), CTDatabase::SetExclusive(), CTDatabase::IsExclusive()