If your temp table and your real table are in the same database or on the same server you should use an Execute SQL Task to do this. Your code would be something like this:
Update real_table
Set columns = TT.columns
From
real_table RT Join
temp_table TT On
RT.unique_key = TT.unique_key
Insert Into real_table
Select
columns
From
temp_table TT
Where
Not Exists(Select 1 from real_table RT where TT.unique_key = RT.unique_key)
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question