Quote:
|
Originally Posted by rahul_s80
are you refering GTT
i suspect there would be any info about them on system level tables as they are valid only for session
|
yes, it is a global temporary table. I have been browsing though the sys tables and couldn't find anything like it. However, maybe I missunderstand the concept of session but I do connect from a .NET client to call a stored procedure that creates a table and it seems that the table is persistent between calls.
Is there any way that I can check if it exists already so that I don't try to redeclare it? (as that fails).
Also, is there anything wrong in this pattern?
Basically I declare a temp table to create some data, open a cursor with return on it (as I need to return that data to the caller) and therefore I cannot drop the table (as I have an open cursor on it). I thought it would dissapear in between calls but it doesn't.