![]() |
|
Improve database development with a bundle of 12 SQL developer tools from Red Gate. The SQL Developer Bundle will help you:

|
|
By: Greg Robidoux | Read Comments (3) | Related Tips: More > DBA Best Practices |
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.
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.
Updated: 12/17/2010
| Tuesday, November 20, 2012 - 10:18:40 AM - VC | Read The Tip |
|
Hi Greg, I prefer this one as it can accomodate Ref- http://www.codeproject.com/Articles/205011/SQL-Server-Database-Comparison-Tool Cheers, VC |
|
| Wednesday, May 22, 2013 - 8:42:27 AM - SergeiK | Read The Tip |
|
I wonder why Devart's products are not mentioned here. I'm sure they must be observed here. Try dbForge Data and Schema Compare tools – the most professional sql comparison tools I've ever used! SQL Data Compare: http://www.devart.com/dbforge/sql/datacompare/ SQL Schema Compare: http://www.devart.com/dbforge/mysql/schemacompare/ The price is low but the quality is great! p.s. Free trials are available! |
|
| Wednesday, May 22, 2013 - 8:50:27 AM - SergeiK | Read The Tip |
|
Sorry for the mistake in URL... Devart's SQL Schema Compare is available here: http://www.devart.com/dbforge/sql/schemacompare/ |
|
|
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 |