SQLGetConnectOption() - Return current setting of a connect option

SQLGetConnectOption() is a deprecated function and is replaced by SQLGetConnectAttr().

ODBC specifications for SQLGetConnectOption()

Table 1. SQLGetConnectOption() specifications
ODBC specification level In X/Open CLI CAE specification? In ISO CLI specification?
1.0 (Deprecated) Yes No

Syntax

SQLRETURN   SQLGetConnectOption (
                              SQLHDBC           hdbc,
                              SQLUSMALLINT      fOption,
                              SQLPOINTER        pvParam);

Function arguments

The following table lists the data type, use, and description for each argument in this function.

Table 2. SQLGetConnectOption() arguments
Data type Argument Use Description
HDBC hdbc input Connection handle.
SQLUSMALLINT fOption input Attribute to set. SeeSQLSetConnectAttr() for the complete list of connection attributes and their descriptions.
SQLPOINTER pvParam input, output, or input and output Value that is associated with the fOption argument. Depending on the value of the fOption argument, this can be a 32-bit integer value, or a pointer to a nul-terminated character string. The maximum length of any character string returned is SQL_MAX_OPTION_STRING_LENGTH bytes (which excludes the nul-terminator).