version 1.5
OC Get login option (login_ID; option_ID) String
| Parameter | Type | Description | |
| login_ID | Longint | Login ID | |
| option_ID | Integer | Reference number for function | |
| Function result | String | Value 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:
| Descriptor | ID |
| SQL_ACCESS_MODE | 101 |
| SQL_AUTOCOMMIT | 102 |
| SQL_LOGIN_TIMEOUT | 103 |
| SQL_OPT_TRACE | 104 |
| SQL_OPT_TRACEFILE | 105 |
| SQL_TRANSLATE_DLL | 106 |
| SQL_TRANSLATE_OPTION | 107 |
| SQL_TXN_ISOLATION | 108 |
| SQL_CURRENT_QUALIFIER | 109 |
| SQL_ODBC_CURSORS | 110 |
| SQL_QUIET_MODE | 111 |
| SQL_PACKET_SIZE | 112 |
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