Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 lookup

Author  Topic 

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2008-05-01 : 04:34:03
Hi,
I am transferring the xml data from an xml file into sql server table using ssis.
To avoid any duplicate import via this ssis package, I would like to first check if data exists in the sql server table for what is about to be imported. If so then delete the existing data and then import.

Question:
How do I get the field value say ID field from the file and then take this id and delete these from the table in sql server first.

Is this to do with lookup or is there an easier way to do this please?
thanks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-05-01 : 13:12:34
I think you need a exec sql task where you perform this delete. the id will passed as parameter to task.

http://technet.microsoft.com/en-us/library/ms141003.aspx
Go to Top of Page
   

- Advertisement -