Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 referencing a temporary table in a cursor.

Author  Topic 

richpike
Starting Member

1 Post

Posted - 2001-01-29 : 10:26:01
I am using a cursor in a stored procedure. I want to make a temporary table within the stored procedure then I want to select from the temporary table into a cursor. When I try to do that I get an error in the query analyzer - "invalid object name - "#tmptablename". Are temporary tables accessible to cursors? Any ideas on why it is not working?
   

- Advertisement -