February 21, 2014 at 1:48 am
Hi Experts,
Iam facing a problem while executing the package in SSIS.
am testing with sample data taking source and target tables from sql server. I have connected the source and target and when i executed it first time it is loading the records into the target and when am executing the same package again the records are loading again instead of overwritting. for example
source table
eno,ename
1,a
2,b
3,c
when executing first time
target table looks like
eno,ename
1,a
2,b
3,c
This is fine. When i execute the same again, the target table looks like the below
eno,ename
1,a
2,b
3,c
1,a
2,b
3,c
How can i manage this to get records only once. Is there any option like "Delete target before loading" or any of the transform will help me??//.
Please guide me in this problem.
Thank you in advance,
Warm Regards,
VijayVanamala
February 21, 2014 at 1:58 am
I guys, I have achieved this using Slow changing dimension fixed attribute. If there is any other solution to achieve this please post the solution.
Thanks & Regards
VijayVanamala
February 21, 2014 at 2:18 am
Vijay
The trouble with the SCD is that it processes one row at a time. If you are bringing in a lot of data, you might consider loading all the data into a staging table, then using a join query or a MERGE statement to load or update as required.
John
February 21, 2014 at 3:10 am
Yes John.. That is the good Idea.
Thanks for your Reply.
Best Regards,
VijayVanamala.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply