The information in this article applies to:
SYMPTOMSIf you create a table in a stored procedure and reference it in a DECLARE CURSOR statement, execution of the stored procedure will fail with:
WORKAROUNDYou can avoid this error message by either creating the table before you create the stored procedure, or enclosing the DECLARE CURSOR statement inside an EXEC statement, such as:
MORE INFORMATION
This error occurs with either temporary or permanent tables in SQL Server version 6.0. With SQL Server 6.5, it only occurs with a permanent table. This error does not occur in SQL Server 7.0. Additional query words: sql6
Keywords : kbprg SSrvProg SSrvStProc |
Last Reviewed: March 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |