ttRamPolicy
Description
Defines the policy used to determine when TimesTen loads the database specified by the connection string into the system RAM.
Required Privilege
Instance administrator
Syntax
ttRamPolicy (ttUtilHandle handle, const char* connStr,
ttRamPolicyType policy)
Parameters
Parameter | Type | Description |
---|---|---|
|
|
Specifies the TimesTen utility library environment handle allocated using |
|
|
This is a null-terminated string specifying a connection string that describes the database for which the RAM policy is to be set. |
|
|
Specifies the policy used to determine when TimesTen loads the specified database into system RAM. Valid values are the following:
If you do not explicitly set the RAM policy for the specified database, the default RAM policy is Note: |
Example
This example sets the RAM policy to manual for the payroll
DSN.
ttUtilHandle utilHandle; int rc; rc = ttRamPolicy (utilHandle, "DSN=payroll", TT_RAMPOL_MANUAL);
See Also