The information in this article applies to:
BUG #: 14576 (6.5) SYMPTOMS
If you open an engine cursor using sp_cursoropen on a stored procedure that
contains a UNION query, you will receive the following error:
WORKAROUND
To work around this problem, use the following steps:
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONA server cursor can only be created on a stored procedure that contains a single SELECT statement. However, a UNION always produces a consistent single result set, and should be allowed as a static cursor, as documented in the SQL Server ODBC driver Help. ODBC applications will have problems running SQL statements that contain the UNION clause, because the "Generate Stored Procedure for Prepared Statement" option in the Datasource setup is enabled by default. This results in the creation of temporary stored procedures for every prepared statement, causing an error on opening a server cursor. Additional query words: cursors
Keywords : kbusage SSrvStProc kbbug6.50 |
Last Reviewed: April 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |