SQLSetConnectOption() - Set connection option

This function is deprecated and is replaced by SQLSetConnectAttr(). You cannot use SQLSetConnectOption() for 64-bit applications.

ODBC specifications for SQLSetConnectOption()

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

Syntax

SQLRETURN   SQLSetConnectOption(
                              SQLHDBC           hdbc,
                              SQLUSMALLINT      fOption,
                              SQLUINTEGER       vParam);

Function arguments

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

Table 2. SQLSetConnectOption arguments
Data type Argument Use Description
HDBC hdbc input Connection handle.
SQLUSMALLINT fOption input Connect attribute to set.
SQLUINTEGER vParam input Value associated with fOption. Depending on the attribute, this can be a 32-bit integer value, or a pointer to a nul-terminated string.