• bobd125 (1/10/2013)


    I have a Execute T-SQL task which purged records from table. I would like to record in a log file the record count of how many records where deleted. Is this done by turning logging on?

    Your ExecuteSQL task needs to return the count, which you can map to a package variable.

    The way in which you do this depends on the exact SQL you have written, but @@rowcount might be your friend.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.