Session propertiesThe default session properties are suitable for most c-treeDB applications. Advanced developers may need to tune c-treeDB to meet application requirements. Use CTSession::SetSessionParams() to set the following properties: Table 3-1: Default Session Parameters
The default USERPROF value of 513 tells single-user, transaction-control applications, to remove the auxiliary log files S*.FCS and L*.FCS upon successful termination of the application, and also removes the automatic key transformation. The table below present all possible values for the USERPROF parameter. Table 3-2: User Profile Values
Example
CTSession ASession; try {
// set the new profile ASession.SetSessionParam(USERPROF, (USERPRF_NTKEY | USERPROF_CLRCHK));
ASession.Logon(“FAIRCOMS”, “ADMIN”, “ADMIN”); } catch (CTException &err) {
printf(“Session logon failed with error %d\n”, err.GetErrorCode()); } |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||