In SSIS, how do I get the number of rows returned from the Source that SHOULD be processed

前端 未结 5 1935
感情败类
感情败类 2020-12-11 05:43

I am working on a project to add logging to our SSIS packages. I am doing my own custom logging by implementing some of the event handlers. I have implemented the OnInformat

5条回答
  •  借酒劲吻你
    2020-12-11 06:42

    You can use the Row Count transaformation after the Data source and save it the variable. This is going to be number of rows to be processed. Once it got loaded into the Destination, you should use the Execute SQL Task in Control flow and use Select Count(*) from <> and save the count into the Other variable[You should use the Where clause in your query to identify the current load]. So you will have number rows processed for logging.

    Hope this helps!

提交回复
热议问题