Skip to content

DF_DRIVER_JIT_TRESHOLD

The threshold, in Mb, that makes a column eligible for JIT binding.

Level

Driver

Supported by

The DataFlex SQL Drivers (SQL Server, DB2, and ODBC), revision 5 and higher.

Type

Integer, temporary

Access

Read/Write

Values

0..

Syntax

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

Driver Configuration Keyword

JIT_Treshold

Remarks

The threshold, in Mb, that makes a column eligible for JIT binding (default 10 Mb). See JIT Binding for more information.

This default value is copied to the database level when logging in to the database. The actual value in use for an active connection is that on the database level. This attribute merely reflects a default.

Sample Code

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

Procedure ShowDriverAttribute
    Boolean iAttribValue
    Integer iDriver

    Get DriverIndex "MSSQLDRV" to iDriver
    Get_Attribute DF_DRIVER_JIT_TRESHOLD of iDriver to iAttribValue
    Showln "JIT Treshold: " iAttribValue
End_Procedure

The sample code above shows the current setting for a given driver.