Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How do i make a for loop container to execute till the resultset from a SQL task becomes zero (

$
0
0

Hi All,

I am fairly new to SSIS tool and i am trying to implement a automation concept between one sequence container and the next one based on the output of a SQL Task.

I have a set of package inside a sequence container and once all those packages are executed it will load records into a Maximo(software we use for asset management in utilities) integration table and then it will consume the records in batches.  Once the records are loaded into the integration table the process will start consuming the data after 1 minute delay (Need to know how to Delay the process in SSIS) and it will be stored in a tracking table as status "RECEIVED". I want to start the next sequence once the count(*) of the records received in the tracking table as status "RECEIVED" is equal to zero. 

I tried to implement it by using a for loop container and execute SQL task(inside the for loop) using the ResultSet to store count of the records in RECEVED status. I think the looping to execute SQL task till the count is zerp is not working as expected and i think i am missing something here.

Any help from the experts are highly appreciated.

Thanks in Advance,
Siva


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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