OC Get login option

4D - Documentation   Français   English   German   4D ODBC, Command Theme List   4D ODBC, Command Alphabetical List   Back   Previous   Next

version 1.5


OC Get login option (login_ID; option_ID) String

ParameterTypeDescription
login_IDLongintLogin ID
option_IDIntegerReference number for function
Function resultStringValue of connection option, or
Empty string in case of error

Description

The OC Get login option function retrieves the value of a connection option.

login_ID must be a valid login ID.

option_ID is the reference number for the requested option. A list of reference numbers follows the description of this routine.

OC Get login option returns the requested information if it succeeds. Otherwise, the function returns an empty string.

The reference numbers for the option_ID parameter are as follows:

DescriptorID
SQL_ACCESS_MODE101
SQL_AUTOCOMMIT102
SQL_LOGIN_TIMEOUT103
SQL_OPT_TRACE104
SQL_OPT_TRACEFILE105
SQL_TRANSLATE_DLL106
SQL_TRANSLATE_OPTION107
SQL_TXN_ISOLATION108
SQL_CURRENT_QUALIFIER109
SQL_ODBC_CURSORS110
SQL_QUIET_MODE111
SQL_PACKET_SIZE112

Example

The following method obtains information regarding the SQL_AUTOCOMMIT option (ID = 102) and returns the results in the $result variable.

   $result:=OC Get login option(login;102)

See Also

OC Set login option.


4D - Documentation   Français   English   German   4D ODBC, Command Theme List   4D ODBC, Command Alphabetical List   Back   Previous   Next