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