Skip to content

DF_DRIVER_CACHE_PATH

Path to the folder where the cache (CCH) files are stored.

Level

Driver

Supported by

The DataFlex SQL Drivers (SQL Server, DB2, and ODBC)

Type

String, temporary

Access

Read/Write

Values

Any valid path

Syntax

Use cli.pkg
Get_Attribute DF_DRIVER_CACHE_PATH of {driverNumber} to {IntegerVariable}
Set_Attribute DF_DRIVER_CACHE_PATH of {driverNumber} to {IntegerVariable}

Driver Configuration Keyword

Cache_Path

Remarks

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.

Example

The following sample code shows the current setting for a given driver:

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