Unable to open table at query execution time

Unable to open table at query execution time

Post by David John Marott » Wed, 16 Jul 1997 04:00:00



I am getting an error calling a stored procedure intermitantly.  
From VB the error is reported as:

   37000: [Microsoft] [ODBC SQL Server Driver] [SQL Server] Internal Error
-
   Unable to Open Table at query execution time 40002

From ISQL/w the error is reported as:

   Msg 202, Level 11, State 2 Internal error - Unable to Open Table
   at query execution time.

The stored procedure is using temporary tables (yes I remembered to
drop the temporary tables).  I wondered if the tempdb (still set at the
default of 2MB) is too low.  Any way to check what is going wrong?

Please send help to me (copy the list if you want).

Thanks,
--

http://www.veryComputer.com/.*ia.edu/~djm5g/david.html

 
 
 

Unable to open table at query execution time

Post by Whit » Sat, 19 Jul 1997 04:00:00



> I am getting an error calling a stored procedure intermitantly.
> From VB the error is reported as:

>    37000: [Microsoft] [ODBC SQL Server Driver] [SQL Server] Internal Error
> -
>    Unable to Open Table at query execution time 40002

> From ISQL/w the error is reported as:

>    Msg 202, Level 11, State 2 Internal error - Unable to Open Table
>    at query execution time.

> The stored procedure is using temporary tables (yes I remembered to
> drop the temporary tables).  I wondered if the tempdb (still set at the
> default of 2MB) is too low.  Any way to check what is going wrong?

> Please send help to me (copy the list if you want).

> Thanks,
> --

> http://www.veryComputer.com/.*ia.edu/~djm5g/david.html

David, what kind of access are you trying against the temp table.  I
have seen the "Fetch" statement not work against a temp table created in
the same procedure that defines it. The work around was to create and
populate the temp table, then fire a stored procedure to perform the
fetch against the temp table.

Good luck

Gary white


 
 
 

Unable to open table at query execution time

Post by Erland Sommarsk » Sun, 20 Jul 1997 04:00:00



Quote:>From ISQL/w the error is reported as:

>   Msg 202, Level 11, State 2 Internal error - Unable to Open Table
>   at query execution time.

>The stored procedure is using temporary tables (yes I remembered to
>drop the temporary tables).  I wondered if the tempdb (still set at the
>default of 2MB) is too low.  Any way to check what is going wrong?

Presumably you have a cursor working against that temp table. I have
seen the explanation, but I don't remember it on the top of my head.
But it has to with the fact that the optimizer tries to build a
query plan for the cursor, before it has fully understood the table.

There are several workarounds. One is to stop using the cursor all-
together in favour of SELECT MIN, or SET ROWCOUNT 1. But if you
want the cursor, simply but the DECLARE statment in an EXECUTE
statement:

   EXECUTE("
     DECLARE temp_cur CURSOR FOR
        SELECT col1, col2...
        FROM   #temp...
        WHERE  ...
   ")

--

F=F6r =F6vrigt anser jag att QP b=F6r f=F6rst=F6ras.
B=65sid=65s, I think QP should b=65 d=65stroy=65d.

 
 
 

1. Unable to Open Table at Query Execution Time

When attempting to run a stored procedure from an asp page through a vb dll
object, we get the following error: 'Unable to Open Table at Query Execution
Time".  SQLTrace shows that sp_cursoropen is called but the error occurs
before the process gets to the fetch operation.

This does not happen when running the sp through ISQL, nor does some thing
like it happen for queries run directly form the pages.

We have checked that the dll was installed properly.  It is odd though that
we have no problem on our dev server--it only happen on a test server.

-dr

2. newbie question: float datatype

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

4. How to Think in Paradox

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

6. Progress 4 Win- 2 fonts in 1 report

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

8. FMPro 6 for Mac OS X: Open Remote dead as a doornail

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

10. Unable to open table at the query execution time

11. Internal error -- Unable to open table at query execution time.

12. !!!! Internal error:Unable to open table at query execution time...