How to empty my destination table before inserting new records in SSIS?

Tassisto picture Tassisto · Nov 27, 2013 · Viewed 85k times · Source

I use SSIS to generate and transform new data for later use in a new system. I have a problem every time I run my SSIS Package, it keeps inserting new records to my destination tables.

How can I empty my destination table (/OLE DB Destination) first and then inserting the newly generated records?

Currently the workaround for this problem is performing a delete from DestTable before running my package.

Answer

TsSkTo picture TsSkTo · Nov 27, 2013

Put your delete statement in an Execute SQL Task. Then make it the first component of your flow. The component looks something like this:

enter image description here