SQLGetConnectOption function (CLI) - Return current setting of a connect option

In ODBC version 3, SQLGetConnectOption() has been deprecated and replaced with SQLGetConnectAttr(). Although this version of CLI continues to support SQLGetConnectOption(), use SQLGetConnectAttr() in your CLI programs so that they conform to the latest standards.

Migrating to the new function

Unicode equivalent: This function can also be used with the Unicode character set. The corresponding Unicode function is SQLGetConnectOptionW(). See Unicode functions (CLI) for information about ANSI to Unicode function mappings.
The statement:
   SQLGetConnectOption(hdbc, SQL_ATTR_AUTOCOMMIT, pvAutoCommit);
for example, would be rewritten using the new function as:
   SQLGetConnectAttr(hdbc, SQL_ATTR_AUTOCOMMIT, pvAutoCommit,
                     SQL_IS_POINTER, NULL);