How to use row count task in SSIS

  • Hi,

    I am using the data flow task in which I have a Source and a row count task and then a destination.

    I defined a variable , 'a' ( of package scope) and double clicked the row count task. Set the 'Variable Name' as the 'a'.

    After my data flow task, I have a script task which displays the value of 'a'.

    Everything is going fine and I see that there are rows inserted at the destination.

    However, the script task displays the wrong row count.

    Where am I going wrong ?

    Thanks.

  • It sounds like you have the rowcount configured properly. Are there any other transforms or tasks that interact with this variable? Perhaps it's being modified elsewhere?

    Do you see the correct rowcount in the pipeline connector within your data flow?

  • I made a silly mistake of declaring 'a' as a read variable rather than a read-write variable in the script task.

    and thanks to you otherwise I would not have noticed the problem since I had decided to proceed in another way, until I saw your posting 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply