June 29, 2009 at 5:21 am
how do i compar the two diffrence of the two tables having 900000 records
Urgent Query
June 29, 2009 at 5:59 am
Could you be more specific please?
Have a look to BOL for INTERSECT/EXCEPT
June 29, 2009 at 11:15 am
In addition to Flo's suggestion, which will work, there are several third-party comparison utilities on the market including RedGate SQLDataCompare and ApexSQL SQLDIff that have evaluation versions so you can try them out.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
June 29, 2009 at 12:07 pm
Jack Corbett (6/29/2009)
In addition to Flo's suggestion, which will work, there are several third-party comparison utilities on the market including RedGate SQLDataCompare and ApexSQL SQLDIff that have evaluation versions so you can try them out.
I always forget these tools. I never needed something like this since now. Hope I remember when the day comes...
Thanks Jack!
June 29, 2009 at 12:13 pm
I would use TableDIff utility that comes with SQL 2005.
June 29, 2009 at 3:05 pm
Here is an article writen by Peso that compares several methods:
June 29, 2009 at 10:54 pm
Hi All
This my sution
there are two tables i am mentioning , but there is 900000 records ,
TABEL-1
ID VALUE USER
123 500 rama
TABEL-2
ID VALUE USER
123 500 soma
Question:
In Table 1, tabel 2, the user name has been changed , can u please tell that how can i find this effected records in huge.
Regards
sateeesh
June 29, 2009 at 11:35 pm
SAT_SQL (6/29/2009)
Hi AllThis my sution
there are two tables i am mentioning , but there is 900000 records ,
TABEL-1
ID VALUE USER
123 500 rama
TABEL-2
ID VALUE USER
123 500 soma
Question:
In Table 1, tabel 2, the user name has been changed , can u please tell that how can i find this effected records in huge.
Regards
sateeesh
Sateeesh,
Did you follow Flo's recommendation to read BOL about the INTERSECT / EXCEPT operators? Because what follows uses them.
select ID, Value, USER from [TABEL-1]
EXCEPT
select ID, Value, USER from [TABEL-2]
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 29, 2009 at 11:47 pm
Wayne
sorry it is not showing the effected records
Regards
sat_sql
Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply