April 7, 2009 at 2:40 am
using SqlServer 2005/ XP
I am using data flow task to import data from a file source into a table
but I need to update existing row in table and Insert a new row if not exist.
I am first time using data flow task please any body help me.
Thanks
April 7, 2009 at 2:46 am
This is not directly supported. I suggest that you bring the data in to a temporary (or staging) table (after having run TRUNCATE on it) and then use a stored proc to do the UPDATEs and INSERTs from this table to the main table.
The absence of evidence is not evidence of absence.
Martin Rees
You can lead a horse to water, but a pencil must be lead.
Stan Laurel
April 7, 2009 at 5:36 am
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply