Looping through stages?
Posted: Thu Jul 06, 2017 1:50 am
Hello,
I have a requirement to execute a stored procedure after every 1000 rows inserted into the target table. For example after cdc there are a total of 3224 rows to be inserted, I need to execute the stored procedure a total of 3 times and use a value returned from the procedure and insert into the target.
the database I'm using is SQL Server 2008.
Thank you in advance for any help.
I have a requirement to execute a stored procedure after every 1000 rows inserted into the target table. For example after cdc there are a total of 3224 rows to be inserted, I need to execute the stored procedure a total of 3 times and use a value returned from the procedure and insert into the target.
the database I'm using is SQL Server 2008.
Thank you in advance for any help.