How to deduplicate in SSIS

Hi I have data that comes in as a file and I load it in a table and it has lot of duplicates, is there a task that helps me to deduplicate it ?pls suggest
sqlcuriousAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
You could throw in an aggregate task in your data flow and group by everything that you would consider a duplicate, but under normal circumstances I'd write an SP that handles that, either by executing the SP to delete dups, or use the SP as a source for subsequent data flows.
0
Anthony PerkinsCommented:
This type of question comes up all the time.  And the answer is the same regardless:  Never, ever import data that has not been validated into production tables.  Always import the data into staging tables you can then do whatever you like:
1. Delete the duplicates.
2. Only import the unique values.
0
Vikas GargBusiness Intelligence DeveloperCommented:
Hi,

If you can't remove duplicate from source and want to remove duplicates using SSIS transformation then SORT transformation is better to remove duplicates.


http://www.experts-exchange.com/Database/MS-SQL-Server/SQL_Server_2008/Q_28485575.html
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

sqlcuriousAuthor Commented:
Thanks!
0
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Okay,  wild curiosity overwhelms me.  Please explain in great detail how a sort transform eliminates duplicates.
0
Vikas GargBusiness Intelligence DeveloperCommented:
Jim,

You can go through the link I provided in which I have shown how Sort can remove duplicates
0
Vikas GargBusiness Intelligence DeveloperCommented:
Sort
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Fair enough.  Changing answer to reflect new info which wasn't stated in the original accepted answer.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.