If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Drop temprary table in stored procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-07-05, 05:15
siprjua01 siprjua01 is offline
Registered User
 
Join Date: May 2004
Posts: 1
Drop temprary table in stored procedure

I have a stored procedure in DDF with a temporary table.
How can i drop a temporary table in a stored procedure with a CURSOR WITH RETURN in the temporary table ?.
Reply With Quote
  #2 (permalink)  
Old 11-08-05, 04:45
gmesturini gmesturini is offline
Registered User
 
Join Date: Nov 2005
Posts: 21
i don't think you can, not in the same SP. the cursor should be a pointer on the table, not a real object containing data. you can drop the table only after you move the data from the table to another destination, by the cursor.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On