BUG: Stored Procedure with Multiple Cursors May Cause Error 2805

Last reviewed: April 23, 1997
Article ID: Q167353
The information in this article applies to:
  • Microsoft SQL Server, version 6.0
BUG #: 15627 (Windows: 6.0)

SYMPTOMS

A stored procedure that contains multiple cursors and temporary tables may cause error 2805:

   Bad pointer 0xed5f5a encountered while remapping stored procedure
   'myproc'.  Must re-create procedure.

The procedure involved contains two cursors that reference four other user tables. Temporary tables are also used for temporary storage inside the procedure. The procedure normally runs fine without any errors. However, if you run it in a while loop, and break the loop execution before it finishes, any further execution of this procedure causes error 2805.

WORKAROUND

When this error occurs, re-create the stored procedure.

STATUS

Microsoft has confirmed this to be a problem in SQL Server version 6.0. This problem does not occur in Microsoft SQL Server version 6.5.


Additional query words: sp cursors temp proc
Keywords : kbbug6.00 kbusage SSrvStProc
Version : 6.0
Platform : WINDOWS
Issue type : kbbug
Resolution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 23, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.