Skip to content

DF_DRIVER_LOGIN_ON_OPEN

Controls whether a login will be attempted during an open if the program is not already logged in on the connection.

Level

Driver

Supported by

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

Type

Integer, temporary

Access

Read, Write

Values

  • 1 or 0

Default

1 (True)

Syntax

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

Driver Configuration Keyword

Login_On_Open

Remarks

  • If LOGIN_ON_OPEN is 1 when opening a table and there is no connection, the driver will attempt an automatic login.
  • If LOGIN_ON_OPEN is 0 when opening a table and there is no connection, the driver will not attempt to login, but will generate an error.

Example

Get_Attribute DF_DRIVER_LOGIN_ON_OPEN of iDriverIndex to iLoginOnOpen
Set_Attribute DF_DRIVER_LOGIN_ON_OPEN of iDriverIndex to 0