SQL Server Performance


Discussion in 'SQL Server 2005 Integration Services' started by arkiboys, May 1, 2008.

  1. arkiboys Member

    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.
    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?
  2. satya Moderator

  3. dineshasanka Moderator

    lookup is the best option.
    You can use merge but costly in resource wise

Share This Page