Quantcast
Channel: SCN: Message List - SAP Advantage Database Server
Viewing all articles
Browse latest Browse all 997

Re: Store Procedures do not delete temp tables created in that procedure

$
0
0

Edgar,

 

We tried your first example to do a create of the temporary table but the following Execute Immediate throws an error when it is changed to an Insert Into statement.  The records still seem to get populated, at least when tried in the sql query window (not tried in the sp yet).  I am not sure why an error is thrown and it a non-descript ISAM error.  We also tried to drop the table in the try catch instead of creating the table and leaving the select into statement as is, but it says that it is locked and does not drop the table, so this does not work either.  Are we going to have to trap the execute immediate error as well and just ignore?

 

Thank you,

 

Dave Anderson


Viewing all articles
Browse latest Browse all 997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>