FIX: "Invalid Argument Value" Error with SQLSetConnectOption

Article translations Article translations
Article ID: 169218 - View products that this article applies to.
This article was previously published under Q169218
BUG #: 4622 (ODBC30)
Expand all | Collapse all


When SQL_ODBC_CURSORS is set to SQL_CUR_USE_ODBC using the SQLSetConnectOption and a connection to a data source is made, the next call to SQLSetConnectOption to set the SQL_CURRENT_QUALIFIER or SQL_ATTR_CURRENT_CATALOG fails with the following message:
szSqlState = "S1009", *pfNativeError = 0, *pcbErrorMsg = 55
szErrorMsg = "[Microsoft][ODBC Driver Manager] Invalid argument value"


To work around this problem, use SQLSetConnectOption to set the SQL_ODBC_CURSORS to SQL_CUR_USE_IF_NEEDED or SQL_CUR_USE_DRIVER. The ODBC Cursor Library version 3.00.2822 resolves this issue.


Microsoft has confirmed this to be a problem in Microsoft Open Database Connectivity version 3.0. This problem has been corrected in U.S. Service Pack 1 for Microsoft Open Database Connectivity, version 3.0. For more information, contact your primary support provider.


This behavior is only seen with ODBC 2.X applications using a Driver Manager 3.0 and a 2.X ODBC driver.


Article ID: 169218 - Last Review: August 27, 1999 - Revision: 1.0
  • Microsoft Open Database Connectivity 3.0
kbbug kbfix kbprogramming KB169218
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from