Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Volatile Table Use, Scope, & Ownership within Stored Procedures - response (1) by dnoeth

$
0
0

There's no way to find out which VTs exist within your current session using dbc tables.
Only "HELP VOLATILE TABLE;" will return that info, but it's not allowed within a SP.
The easiest way to avoid naming problems is a naming convention like: all Volatile Table names start with "VT_", but no real table.
Then you just have to add make shure that it's actually dropped at the end of the SP or you simply start the SP with a DROP and catch a potential "table doesn't exist" in a CONTINUE handler.
 
Dieter


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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