ssis - DELETE in Execute SQL Command Control -
my source , destination tables on different servers , have same schema. need merge them in way if record exists in target , not exist in source should deleted destination. how can achieve in ssis.
try :
1.drag oledb command
, specify connection in connection manager
in dialog box.
2.in component properties write sql command delete rows
delete yourtable id = ?
3.in column mappings tab map ?
input column id
coming previous component
update 2
: use lookup after oledb source .configure lookup
step 1: select cache mode .generally full cache selected if number of rows less
step 2:specify redirect rows no match output
step 3:specify connection , write query id's(or joining column ) destination table
select id destination
step 4: macth id
source id destination table , select checkbox id
column in rhs.
step 5: follow steps written before update
configuring oledb command
delete rows.make sure select id lookup
not source
while mapping oledb command
component