Article ID: 192829 - Last Review: March 14, 2006 - Revision: 4.0 FIX: Msg 267 and 202 on Stored Proc If Table Is Dropped and Re-createdThis article was previously published under Q192829
BUG #: WINNT: 18051 (6.5)
SYMPTOMS
A stored procedure with a cursor on a temporary table may fail to execute,
with errors 267 and 202, if it references a table that has been dropped and
re-created or altered. Following are the messages you may receive:
Msg 267, Level 16, State 1 Object '#tt' cannot be found.
Msg 202, Level 11, State 2 Internal error -- Unable to open table at query execution time. WORKAROUND
To work around this problem, drop and re-create the procedure.
STATUS
Microsoft has confirmed this to be a problem in SQL Server versions 4.2x
and 6.0.
Microsoft has confirmed this to be a problem in SQL Server 6.5. This problem has been corrected in Service Pack 5a for Microsoft SQL Server 6.5.For more information, click the following article number to view the article in the Microsoft Knowledge Base: 197177
(http://support.microsoft.com/kb/197177/
)
INF: How to Obtain SQL Server 6.5 Service Pack 5a For more information, contact your primary support provider.
MORE INFORMATION
The following small example demonstrates the problem:
APPLIES TO
| Article Translations
|

Back to the top
