3.3 Environment Attributes

Table of Contents Previous Next


3 EDB-ODBC Driver Functionality : 3.3 Environment Attributes

You can use the ODBC SQLGetEnvAttr() and SQLSetEnvAttr() functions to retrieve or set the value of an environment attribute.
Use the SQLGetEnvAttr() function to find the current value of environment attributes on your system. The signature of the function is:
SQLHDBC env_handle, // Input
SQLINTEGER attribute, // Input
SQLPOINTER value_ptr, // Output
SQLINTEGER buffer_length, // Input
SQLINTEGER *string_length_pointer // Output
attribute identifies the attribute whose value you wish to retrieve.
If the attribute is a character string, buffer_length is the length of value_ptr. If the value of the attribute is not a character string, buffer_length is unused.
A pointer to a SQLINTEGER that receives the number of bytes available to return in value_pointer. If value_pointer is NULL, string_length_pointer is not returned.
This function returns SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_NO_DATA, SQL_ERROR or SQL_INVALID_HANDLE.

3 EDB-ODBC Driver Functionality : 3.3 Environment Attributes

Table of Contents Previous Next