Path to the folder where the cache (CCH) files are stored.
Driver
The DataFlex SQL Drivers (SQL Server, DB2 and ODBC)
String, temporary
Read/Write
Any valid path
Use cli.pkg
Get_Attribute DF_DRIVER_CACHE_PATH of {driverNumber} to {IntegerVariable}
Set_Attribute DF_DRIVER_CACHE_PATH of {driverNumber} to {IntegerVariable}
Path to the folder where the cache (CCH) files are stored. By default, cache files are stored in the same folder as the intermediate file. Cache files will be used if the DF_DRIVER_USE_CACHE attribute is set to true.
Procedure ShowDriverAttribute Integer iDriver
String sAttribValue
Integer iDriver
Get DriverIndex "MSSQLDRV" to iDriver
Get_Attribute DF_DRIVER_CACHE_PATH of iDriver to sAttribValue
Showln "Cache path: "sAttribValue
End_Procedure
Function DriverIndex String sDriver Returns Integer
String sCurrentDriver
Integer iNumberOfDrivers iDriver iCount
Move 0 to iDriver
Get_Attribute DF_NUMBER_DRIVERS to iNumberOfDrivers
For iCount From 1 To iNumberOfDrivers
Get_Attribute DF_DRIVER_NAME of iCount To sCurrentDriver
If (Uppercase(sCurrentDriver)) = (Uppercase(sDriver)) Begin
Move iCount to iDriver
End
Loop
Function_Return iDriver
End_Function // DriverIndex
The sample code above shows the current setting for a given driver.