DF_DRIVER_DEFAULT_RECORD_IDENTITY_HIDING
Indicates if "recnum" columns are hidden.
Level
Driver
Supported by
The DataFlex SQL Drivers (SQL Server, DB2, and ODBC), revision 5 and higher.
Type
Boolean, temporary.
Access
Read/Write.
Values
- True
- False
Syntax
Use cli.pkg
Get_Attribute DF_DRIVER_DEFAULT_RECORD_IDENTITY_HIDING of {driverNumber} to {BooleanVariable}
Set_Attribute DF_DRIVER_DEFAULT_RECORD_IDENTITY_HIDING of {driverNumber} to {True|False}
Driver Configuration Keyword
Default_Record_Identity_Hiding
Remarks
Up to version 3 of the CLI-based drivers, record identities were not hidden. A column called "DFRECNUM" was added to the end of a table and this column was visible. Setting this attribute to true will hide these columns from the table definition.
Example 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 bAttribValue
Integer iDriver
Get DriverIndex "MSSQLDRV" to iDriver
Get_Attribute DF_DRIVER_DEFAULT_RECORD_IDENTITY_HIDING of iDriver to bAttribValue
Showln "Hide recnum: " (If(bAttribValue, "YES", "NO"))
End_Procedure
The sample code above shows the current setting for a given driver.