This function returns the current settings for the specified connection option.
Syntax :
RETCODE SQLGetEnvAttr(henv, Attr, value,bufLen, strLen);
Arguments:
The arguments for SQLGetEnvAttr are listed in below table.
| Type | Name | Description |
| SQLHENV | henv | Environment handle |
| SQLINTEGER | Attr | Attribute to retrieve |
| SQLPOINTER | value | Value associated with Attr Depending on the value of Attr |
| SQLINTEGER | bufLen | Maximum size of buffer pointed to by value, if the attribute value is a character string; otherwise, unused. |
| SQLINTEGER * | strLen | Length in bytes of the output data if the attribute value is a character string; otherwise, unused. |