Search code examples
sql-serverssisssis-2012

How to truncate data in OLEDB DESTINATION dynamically in SSIS?


My source is flat file and and target is OLEDB Destination.my source and destination both have data.

now my requirement is when iam trying to load source to destination i want truncate existing data in destination dynamically and insert new source data. how to implement in SSIS ?

Thanks in advance

PPras'd


Solution

  • For Acheving the target just go on the Control flow Task and take execute sql task and the right your Truncate script like Truncate table in the Execute Sql task and then connect this to your Data Flow task. From doing this you can achieveenter image description here your goal. If have you face any Issue then share here