SQLSetStmtOption() - Set statement attribute

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

ODBC specifications for SQLSetStmtOption()

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

Syntax

SQLRETURN   SQLSetStmtOption (SQLHSTMT          hstmt,
                              SQLUSMALLINT      fOption,
                              SQLUINTEGER       vParam);

Function arguments

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

Table 2. SQLSetStmtOption() arguments
Data type Argument Use Description
SQLHSTMT hstmt input Statement handle.
SQLUSMALLINT fOption input Attribute to set.
SQLUINTEGER vParam input Value that is associated with fOption. vParam can be a 32-bit integer value or a pointer to a nul-terminated string.