Vision Binary

work hard, be nice, amazing things will happen


SSIS insert and update rows in a table based on the contents of a Excel file

today’s interviewed

itssmee's avatarIt's Smee Blog

Lets imagine you have an Excel file of First name, Surname, and Age. Also contained in this file is a unique identifier (UID), here is an example:

IDFirstSurnameAge
1BobSmith12
2TomStoner34
3BrendaJones45

Now, lets continue to imagine that you have a corresponding table in SQL Server:

So, the situation is thus; We want to update records that exist in both the table and the Excel file and insert those that exist in the Excel file but not in the table. How do we do this…. Up steps SSIS.

I am going to assume you know the basics of SSIS and so will start from the perpective of a new project in BIDS.

Under Control Flow we need to add a new Control Flow Item – Data Flow. Rename this to Insert and Update records. Now double click on this…

View original post 738 more words



Leave a comment