Package Requirement:For a given source file if the record exists in the database table,update for the new values.If not then insert the new records
Source File:
Lookup/Destination Table:
The package should insert records 4,5 and update record 3 for the new emp_location
Package Design:
Configuring the text file source..
Data Conversion Transformation converts the source datatype to the column data type in lookup reference table
Lookup Transformation:
For OLE DB Command for matching rows(update)
Map the parameters to the fields in the source file
For OLE DB Command for non matching rows(insert)
you totally just saved me hours :)
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteA big thanks to you,I was completely unaware of the OLE DB command and its usage with SSIS Upsert because I am a beginner to SQL but this post was like a sea of knowledge for me and helped me to grab everything.Thanks again.
ReplyDeletecan you update the insert sql query for oldb command with where clauses.
ReplyDelete