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

Stats collection inside SP's - response (16) by ombest

$
0
0

Found a workaround for dinamic SQL and collect stat on volatile tables.
Set SQL SECURITY INVOKER
Creating volatile tables, fill it and others..
and before collecting stat write dummy statement like this:

set SQL_QUERY = 'insert into '||user||'.vt_tb(column1) select 1 a where a = 0';
execute immediate SQL_QUERY;

And after that collect stat.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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