The information in this article applies to:
BUG# NT: 10985 (4.21a) SYMPTOMS
The Microsoft Open Data Base Connectivity (ODBC) Open Data Services (ODS)
Gateway driver which ships with SQL Server versions 4.21 and 4.21a gets an
incorrect syntax error if SQLNumResultCols is called right after a
SQLExecDirect of a procedure whose last step is an UPDATE, DELETE, or
INSERT statement.
The procedure is correctly executed in Transact_SQL syntax by the ODBC ODS Gateway driver:
but a call to SQLNumResultCols immediately after the SQLExecDirect fails with the error:
CAUSEThe error only occurs if the procedure is executed in Transact-SQL syntax, not if the procedure is executed in ODBC syntax. WORKAROUND
SQLNumResultCols works correctly if the procedure is executed in ODBC
syntax:
STATUS
Microsoft has confirmed this to be a problem in the Microsoft ODBC
ODS Driver version 1.02.3731. We are researching this problem, and will
post new information here in the Microsoft Knowledge Base as it becomes
available.
Keywords : kbprg SSrvProg SSrvTran_SQL kbbug4.21a |
Last Reviewed: April 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |