need urgently
hi, i dont know which component do i need to use for my req. i have 2 column from my table ,productid and productname now when file comes, i need to see if productid is match, if yes then if product name is empty then insert productname into productname column in table. now if both r match just ignore. what should i use ,i tried lookup but doesnt work
November 8th, 2012 11:35am

If you are thinking to write query then see MERGE explanation in below link from Pinal http://blog.sqlauthority.com/2010/06/08/sql-server-merge-operations-insert-update-delete-in-single-execution/ Regards, Vishal Patel My Blog
Free Windows Admin Tool Kit Click here and download it now
November 8th, 2012 11:40am

but how can u use merge in ssis
November 9th, 2012 8:34am

You can either use MERGE in an SSIS T-SQL task (after uploading your file to a staging table) or you can use a Data Flow Task with a MERGE JOIN (which is a heavy performance hitter) or possibly a LOOKUP (which can also be a heavy performance hitter). I recommend loading the file into a staging table and then using MERGE in the T-SQL task.MCITP:DBA, MCDBA, MCSA
Free Windows Admin Tool Kit Click here and download it now
November 9th, 2012 8:43am

You can either use MERGE in an SSIS T-SQL task (after uploading your file to a staging table) or you can use a Data Flow Task with a MERGE JOIN (which is a heavy performance hitter) or possibly a LOOKUP (which can also be a heavy performance hitter). I recommend loading the file into a staging table and then using MERGE in the T-SQL task.MCITP:DBA, MCDBA, MCSA
November 9th, 2012 8:43am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics