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.
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