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

using a Timestamp value within a dynamic sql statement - response (2) by bala2121

$
0
0

Hi Dieter,
Casting that Timestamp variable into a varchar is working fine. I also had a doubt whether we are able to call a procedure dynamically within another procedure. But when i ran after casting, the intetrnal procedure is not executed at all.
Just for checking, I placed the direct call statement instead of this dynamic sql with the actual varaible values(sample). It worked fine.
Call dbname.proc_name('a','b','001',2,3,null,cast('2013-07-11 12:32:10.00000' as varchar(24)));
But i cannot have like this since there are around 100 rows in that loop with different variable combo. so i need that call statement to be run for those many times. Is there any other option to call the procedure with all the variable values fetching from output of a FOR loop.
 
Thanks in Advance,
Bala.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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