Getting Started with Adobe After Effects - Part 6: Motion Blur
A collection of quick technology learning tips from what people around you learn every day

Easy tool to compare schema and data of 2 Tables

Jul 6 2012 12:00AM by Alpesh Patel   

A Tool TableDiff is very useful to compare the schema of tables and data of different SQL instances.

A Tool can do the things as below:

  1. A row by row comparison between a source table in an instance of Microsoft SQL Server acting as a replication Publisher and the destination table at one or more instances of SQL Server acting as replication Subscribers.

  2. Perform a fast comparison by only comparing row counts and schema.

  3. Perform column-level comparisons.

  4. Generate a Transact-SQL script to fix discrepancies at the destination server to bring the source and destination tables into convergence.

  5. Log results to an output file or into a table in the destination database.

Read More..   [308 clicks]

Published under: SQL Server Tips ·  ·  ·  · 


Alpesh Patel
36 · 5% · 1663
12
 
5
 
 
0
Incorrect
 
 



Submit

4  Comments  

  • Thank-you for writing about the tablediff utility.

    The tablediff is primarily meant for use in replicating environments, hence, some of the rules that apply to replicating environments also apply to tablediff. For example, tablediff is able to identify when the schema of two tables is different (maybe in case of a missing column, for example) but is unable to tell "what" is different.

    Also, tablediff requires that the source table in the comparison must contain at least one primary key, identity, or ROWGUID column. Therefore, tablediff does not work for heaps.

    tablediff is a great utility if you just want to compare the data between two states of the same database, on the same version. Personally, I use tablediff in replicating environments, but not for database comparisons. For database comparison, Visual Studio 2010 (Ultimate) data/schema compare or other 3rd party tools are good choices.

    commented on Jul 7 2012 3:53AM
    Nakul Vachhrajani
    4 · 33% · 10587
  • TableDiff is easy to use and it is mainly created for replication / replicating environment. I agree with Nakul.

    There are freeware availables for schema comprisions - one of them is DBComparer 3.0 that we have used. You can download it from: http://dbcomparer.com/Download/DBComparerSetup.exe

    commented on Jul 8 2012 11:44PM
    Hardik Doshi
    20 · 9% · 2839
  • Thank you so much for this share..... Its really an amazing tool and as a dba this tool will help us a lot comparing our replication data.

    commented on Jul 23 2012 8:15AM
    Harsha Bhagat
    2706 · 0% · 3
  • I have written one article on this utility on my blog which will display what are the differences at data level and even create .SQL file which you can run in your database to resolve the differences.

    http://www.sqlhub.com/2012/07/tablediff-utility-to-compare-data.html

    commented on Jul 24 2012 5:19AM
    Ritesh Shah
    75 · 2% · 747

Your Comment


Sign Up or Login to post a comment.

"Easy tool to compare schema and data of 2 Tables" rated 5 out of 5 by 12 readers
Easy tool to compare schema and data of 2 Tables , 5.0 out of 5 based on 12 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]