DF_DRIVER_DEFAULT_DEFAULT_NUMERIC
The default value used for Numeric columns.
Level
Driver
Supported by
The DataFlex SQL Drivers (SQL Server, DB2, and ODBC), revision 5 and higher.
Type
String, temporary
Access
Read/Write
Values
Any valid default value for a numeric column.
Syntax
Use cli.pkg
Get_Attribute DF_DRIVER_DEFAULT_DEFAULT_NUMERIC of {driverNumber} to {StringVariable}
Set_Attribute DF_DRIVER_DEFAULT_DEFAULT_NUMERIC of {driverNumber} to {StringVariable}
Driver Configuration Keyword
Remarks
Sets up the default value that will be used when a numeric column is created. Columns can be created during conversion or within a restructure operation.
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.
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
String sAttribValue
Integer iDriver
Get DriverIndex "MSSQLDRV" to iDriver
Get_Attribute DF_DRIVER_DEFAULT_DEFAULT_NUMERIC of iDriver to sAttribValue
Showln "Default Numeric: " sAttribValue
End_Procedure
The sample code above shows the current setting for a given driver.