CODBCStmt.SetStmtAttrmethod
Sets attributes related to a statement.
Syntax
FUNCTION SetStmtAttr (BYVAL Attribute AS SQLINTEGER, BYVAL ValuePtr AS SQLPOINTER, BYVAL StringLength AS SQLINTEGER) AS SQLRETURN
Parameters
| Name | Description | |
|---|---|---|
Attribute | Attribute to set. | |
ValuePtr | Pointer to the value to be associated with Attribute. Depending on the value of Attribute, ValuePtr will be a 32-bit unsigned integer value or a pointer to a null-terminated character string, a binary buffer, or a driver-defined value. If the Attribute argument is a driver-specific value, ValuePtr may be a signed integer. | |
StringLength | If Attribute is an ODBC-defined attribute and ValuePtr points to a character string or a binary buffer, this argument should be the length of ValuePtr. If Attribute is an ODBC-defined attribute and ValuePtr is an integer, StringLength is ignored. If Attribute is a driver-defined attribute, the application indicates the nature of the attribute to the Driver Manager by setting the StringLength argument. StringLength can have the following values:
|
Return value
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.
Description
Sets the current setting of a statement attribute.
Note: Additional procedures, one foe each attribute, have been developed to be used instead of this generic procedure.
Reference
- Include file
CODBCStmt.inc - Defined in AfxNova/COdbcStmt.inc:1191
- Documented in Databases/ODBC Classes/CODBCStmt Class.md
- Topic: CODBCStmt Class