I am attempting to use SSIS (for the first time) to merge data from a CSV file and an existing table (People) in an Azure SQL Database to replace existing data in the table.
The CSV file contains an Id
and a CardId
. On the existing table in Azure there is a field for CardId
which I want to be filled in from the CSV where the two Ids' match.
Here is the Data Flow I am using so far:
I feel that I am close with this solution. The only issue is that when arriving at the People Destination
SSIS is trying to add new rows instead of updating existing rows, resulting in a primary key violation error.
I know that I could import the data into a temporary table and update from there. If that is the easiest way to achieve what I want then I will do that, however I feel that if I knew more about SSIS I could use the Data Flow to do this instead.