solving sql server problems for millions of dbas and developers since 2006



SQL Server DBA Tips SQL Server Developer Tips SQL Server Business Intelligence Tips SQL Server Career Tips SQL Server Tip Categories SQL Server Tutorials SQL Server Webcasts SQL Server Whitepapers SQL Server Tools SQL Server Questions and Answers MSSQLTips Authors About MSSQLTips SQL Server User Groups MSSLQTips Giveaways MSSQLTips Advertising Options

MSSQLTips Facebook Page MSSQLTips LinkedIn Page MSSQLTips RSS Feed MSSQLTips Twitter Page MSSQLTips Google+ Page





SQL Server Comparison Tools

By: | Read Comments | Print

Greg is the President of Edgewood Solutions and a co-founder of MSSQLTips.com.

Related Tips: More

Problem

There is often the need to compare both data and database structures from two databases either on the same server or on different servers.  Most text editors have a built-in process to allow you to do a diff and identify any differences between the two files, but comparing data is not quite that easy.  Using this diff process is great if you only want to compare a few files, but what if you need to scan your entire database to look for differences?

As with anything you can always create your own application to automate the comparison process.  You could cursor through all of the tables read the T-SQL from one server, get the T-SQL for the same object from the other server and do a comparison.   To compare the data you can write scripts that read row by row and do a comparison of the data.  But why bother when there are so many products out there already.

Solution

Luckily a lot of products already exist.  These products allow you to compare database objects, data, DTS scripts, servers, etc...  In addition, these products are not all that expensive either.  Some of the products are under $100 US and I also found a company that offers a free version, see below.

 Following is a list of the various products that allow you to do comparisons:

Object Comparison:

Data Comparison

DTS Comparison

Server Comparison

Free Tools

As far as I can tell this is a complete list, but if there are other products out there send an email to tips@mssqltips.com and we will update this list.

Next Steps

  • Next time you need to compare your database objects don't waste your time doing it manually.  Purchase one of these products or download the free version and give it a try.  Most if not all of these vendors offer free trial versions.
  • Determine what needs to be compared and how frequently.  Look at the different options that allow you to compare objects, data, dts packages and even servers.
  • We provided the list of products, so take this list and find the product that is right for you.

Updated: 12/17/2010



Related Tips: More | Become a paid author


Last Update: 9/11/2006

Share: Share 






Comments and Feedback:


Post a Comment or Question

Keep it clean and stay on the subject or we may delete your comment.
Your email address is not published. Required fields are marked with an asterisk (*)

*Name   *Email   Notify for updates
Comments
*Enter Code refresh code


 
New SQL Monitor v3.0

New SQL Monitor v3.0


Sponsor Information
"SQL diagnostic manager delivers response in minutes, not hours!"

It takes just 5 minutes to connect your SQL Databases to source control. Got 5 minutes? Get started now.

Need SQL Server help and not sure where to turn? Reach out to the Edgewood experts for a Health Check starting at $995.

Find and Fix SQL issues with Foglight Performance Analysis. Get a free copy.

Solving SQL Server problems for millions of DBAs and Devs since 2006. Join now.

Free Learning - Introduction to SQL Azure Delivered by Herve Roggero on Wednesday, June 13 @ 3:00 PM EST


Copyright (c) 2006-2012 Edgewood Solutions, LLC All rights reserved
privacy | disclaimer | copyright | advertise | about
authors | contribute | feedback | giveaways | user groups
Some names and products listed are the registered trademarks of their respective owners.


Edgewood Solutions LLC | MSSharePointTips.com | MSSQLTips.com