Data comparison between two tables

Hi,

I have a requirement to compare data between two tables in SQL Server.

What is the fastest way to do it using SSIS? There are approx 6~7 millions of records in each table.

My solution: Read both the tables and store the data in Object Type variable. Then run an except query. But I am stuck at except query part. How do I implement it?

Any other solution using SSIS is also welcome which can serve the purpose.

Regards,

Ayush

May 24th, 2015 9:31pm

Why SSIS? Are they on different servers?

May be worth creating a hash to compare depending on size/number of columns

Free Windows Admin Tool Kit Click here and download it now
May 25th, 2015 1:01am

Yes, they reside on two servers.

The number of columns is also too much (132). Data size is 6~7 millions.

Runnning an except query on SSMS is taking infinte time creating blocks on the server.

So, i need to look for an alternate method.

Regards,

Ayush.

May 25th, 2015 2:11am

do a hashing based match

see example given here

http://visakhm.blogspot.ae/2014/06/ssis-tips-implementing-scd.html

Free Windows Admin Tool Kit Click here and download it now
May 25th, 2015 3:12am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics