This will help you to understand how to make use of the different options available in the target table while loading data.
Below is the descriptions of all the options with the sample data.
Auto Correct Load:
Auto correct loading ensures that the same row is not duplicated in a target table
Input Data Screen Short:
Target Option Window: Following steps need to be done
Uncheck the Delete sata from Table before Loading
Before Updating in Update Control:
After Updating:
Now go to Source Data and add two Duplicate rows
Before Updating:
After Updating:
After Creation of Jobs in Data Services Designer
Now Apply Auto Correct Load on Target Tables
Note: After apply Auto Correct Load Duplicate values are removed from Target Tables
Now Execute the Job
Output:
Ignore Column Option:
If a matching row exists, the row is updated depending on the values of Ignore columns with value, and Ignore columns with null:
Ignore Columns Options are Worked with Auto Correct Load:
• When the Ignore columns with null option is set to Yes and the column data from the source is NULL, then the corresponding column in the target table is not updated. Otherwise, the corresponding target column is updated as NULL since the source column is NULL.
Now Go To Target Table Properties:
Before Update in the Target Table Properties:
After Update in the Target Table Properties:
Now Source Data Information:
Now create Jobs in Data Services Using Job-Work Flow->Data Flow-> Source & Target and make EMP_ID as a Primary key
View of Source table Before Loading:
View of Source table After Null Values Before Loading:
Now update in the Target Table before loading the data
Then Finally Execute the Job
Output after executing the job:
Ignore Column with Value Option:
If a matching row exists, the row is updated depending on the values of Ignore columns with value, and Ignore columns with null:
• When the column data from the source matches the value in Ignore columns with value, the corresponding column in the target table is not updated. The value may be spaces. Otherwise, the corresponding column in the target is updated with the source data.
Now Go To Target Table Properties:
Before Update in the Target Table Properties:
Before Update in the Target Table Properties:
After Update in the Target Table Properties:
Now Source Data Information:
Now create Jobs in Data Services Using Job-Work Flow->Data Flow-> Source & Target and make EMP_ID as a Primary key
View of Source table Before Loading:
Now update in the Target Table before loading the data
Then Finally Execute the Job
Output after executing the job:
Update Key Columns in Update Control:
Now Go To Target Table Properties:
Before Update in the Target Table Properties:
After Update in the Target Table Properties:
Now Source Data Information:
Before Update:
After Update in Source Table:
Now create Jobs in Data Services Using Job-Work Flow->Data Flow-> Source & Target and make EMP_ID as a Primary key
View of Source table Before Loading:
Now update in the Target Table before loading the data
Then Finally Execute the Job
Output after executing the job: