CODBCBase.SetEnvAttrmethod
Sets attributes that govern aspects of environments.
Syntax
FUNCTION SetEnvAttr (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 integer value or point to a null-terminated character string. | |
StringLength | If ValuePtr points to a character string or a binary buffer, this argument should be the length of ValuePtr. If ValuePtr is an integer, StringLength is ignored. |
Return value
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.
Description
Sets attributes that govern aspects of environments.
Reference
- Include file
CODBC.inc - Defined in AfxNova/COdbc.inc:192
- Documented in Databases/ODBC Classes/CODBC Class.md
- Topic: ODBC Classes