Help Center

CODBCBase.SetEnvAttrmethod

Sets attributes that govern aspects of environments.

DatabasesmethodCODBC.incdocumented

Syntax

FUNCTION SetEnvAttr (BYVAL Attribute AS SQLINTEGER, BYVAL ValuePtr AS SQLPOINTER, BYVAL StringLength AS SQLINTEGER) AS SQLRETURN

Parameters

NameDescription
AttributeAttribute to set.
ValuePtrPointer 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.
StringLengthIf 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