Indicates if active column errors must be reported.
Driver
The DataFlex SQL Drivers (SQL Server, DB2 and ODBC), revision 5 and higher
Boolean, temporary
Read/Write
True, False
Use cli.pkg
Get_Attribute DF_DRIVER_REPORT_ACTIVE_COLUMN_ERRORS of {driverNumber} to {BooleanVariable}
Set_Attribute DF_DRIVER_REPORT_ACTIVE_COLUMN_ERRORS of {driverNumber} to {True|False}
Switches error reporting on active columns on or off. The reporting is off if the attribute is set to 0 (zero), all other integer values will switch reporting to on. By default, active column errors are not reported.
See Selective Column Fetching for more information.
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
Procedure ShowDriverAttribute
Boolean bAttribValue
Integer iDriver
Get DriverIndex "MSSQLDRV" To iDriver
Get_Attribute DF_DRIVER_REPORT_ACTIVE_COLUMN_ERRORS of iDriver to bAttribValue
Showln "Report active column errors: " (If(bAttribValue, "YES", "NO"))
End_Procedure
The sample code above shows the current setting for a given driver.