Msg 202 Internal error -- unable to open table at query execution time

Msg 202 Internal error -- unable to open table at query execution time

Post by Stev » Sun, 26 Sep 1999 04:00:00



Sometimes we get error meg. 202 -- unable to open table at query execution
time. Acording to article ID: Q169376 on knowledge base, the procedure has:

1.create a permenent table
2.dop a permanent table
3.create a temporary table
4.declare a cursor on temporary table
5.drop temporary table

We do have the code for steps 3, 4, and 5 in that stored procedure. But not
for steps 1 and 2. So does this error message still apply to our situation.
Question is that this error does not happen every time.

According to Microsoft's suggestion we can use "with recompile" to work
around this problem. But this is a no-no because it defeat the purpose for
stored procedure. Any hint is appreciated.

 
 
 

1. RE : Msg 202: unable to open table at query execution time

BUG: Stored Procedure Execution Fails with Msg 202
PSS ID Number: Q169376
Article last modified on 06-05-1997
PSS database name: SQLSERVER

WORKAROUND
==========

To work around this problem, do any of the following and then drop and
re-create the stored procedure:
  - Use the SELECT INTO statement to create the permanent table
  - Eliminate either of the DROP TABLE statements
  - Wrap the DECLARE CURSOR within an EXEC()
  - Create the stored procedure WITH RECOMPILE or always execute it with

the WITH RECOMPILE option.

This is a part of an article from the TechNet July-1997
_____________________________________________________________________
Martin Hill (MCSD), Development Client/Server ,

H.R. Management Software GmbH, Grunerstr. 133, D-40239 Duesseldorf
url: http://www.hrsoftware.de, Phone: (+49) 211 618 770 Fax: (+49) 211
618 7799
_____________________________________________________________________

2. interfaces/libpqxx/win32

3. Msg: 202 Unable to open table at query execution time

4. SQL 2K reinstallation problem

5. Msg 202 - Internal error -- Unable to open table at query execution time.

6. JVIEW taking up lots of memory

7. Error 202: Unable to open table at query execution

8. Help Needed on Multiuser Login

9. Question on SQL error Message 202, unable to open table

10. Unable to open table at query execution time-error

11. Unable to open table at query execution time

12. Unable to Open Table at Query Execution Time

13. Unable to open table at the query execution time