SQLGetEnvAttr
SQLGetEnvAttr#
This retrieves attribute value of environment handle.This retrieves attribute value of environment handle.
Syntax#
SQLRETURN SQLGetEnvAttr (
SQLHENV env,
SQLINTEGER attribute,
SQLPOINTER value,
SQLINTEGER bufferLength,
SQLINTEGER *stringLength);
Arguments#
Data Type | Argument | In/Output | Description |
---|---|---|---|
SQLHENV | env | Input | Environment handle |
SQLINTEGER | attribute | Input | This inserts attribute of environment handle |
SQLPOINTER | value | Output | Buffer pointer where attributes are saved |
SQLINTEGER | bufferLength | Input | Size of attributes value |
SQLINTEGER * | stringLength | Ouput | Size specified in the value of attribute |
Return Values#
SQL_SUCCESS
SQL_SUCCESS_WITH_INFO
SQL_NO_DATA
SQL_INVALID_HANDLE
SQL_ERROR
Description#
This retrieves attribute value of environment handle.
Diagnosis#
SQLSTATE | Description | Comments |
---|---|---|
HY000 | General error | No error occurs explicitly |
HY001 | Memory allocation error | This denotes to fial to allocate memory for handle. |
HY092 | Invalid attribute or option | Value specified in attribute is not valid one supported by this driver. |
01004 | Data is cut off | Size of value buffer is lesser than the size of returned data. |
HYC00 | Unsupported Attribute Use | Value specified in attribute is unsupported in driver. |
Related Function#
SQLSetEnvAttr