views:

1709

answers:

12

I would like to compare two SQL Server databases including schema (table structure) and data in tables too. What is best tool to do this?

+10  A: 

I am using Red-Gate's software: http://www.red-gate.com

Joakim Backman
We use this, very good.
ck
And very expensive as well
tomaszs
SQLCompare is very good.
John Nolan
Yes - SQL Compare and SQL Data Compare are absolutely essential to our business - good stuff.
Mark Brittingham
Not that expensive and a very good tool, especially after v4. Well worth the thousand dollars.
JoshBerke
brilliant, but we've also found it has a few bugs in its error capturing of its generated scripts
davidsleeps
davidsleeps, have you raised this with Red Gate's support engineers? We'd love to diagnose any issues you might have with SQL Compare (I'm SQL Compare's product manager).
David Atkinson
It may be "expensive" (a few hundred dollars), but when you compare that against what you'd pay a developer to spend a day search, learning, and working around the shortcomings in a free tool, I think it's a well worthwhile investment.
rwmnau
+3  A: 

I use schema and data comparison functionality build into Vistual Studio Team Edition for Database Professionals. Works like a charm. Red-Gate's tool is my second option, when you can't afford VS Team Edition license.

Koistya Navin
A: 

We are using an inhouse developed solution that is basicly a procedure with arguments of what you want included in the comparision (SP's, Full SP code, table structure, defaults, indices, triggers.. etc)

Depending on your needs and budget, it might be a good way to go for you as well.

It is quite easily developed as well, then we just redirect output of procedure to textfiles and do text comparisions between the files.

One good thing about it is that its possible to save the output in source control.

/B

Brimstedt
A: 

I've used SQL Delta before (http://www.sqldelta.com/), it's really good. Not free however, not sure how prices compare to Red-Gates

JonoW
A: 

I've used Red Gate's tools and they are superb. However, if you can't spend any money you could try Open DBDiff to compare schemas.

santiiiii
+2  A: 

dbghost is the best i have used to date. one of the best features i have seen is that it will generate SQL code to go between versions of a database based on the SQL you keep in source control, as well as a database. simple and easy to use.

Bluephlame
I've used DbGhost for 10 years and it's never let me down. The support they provide is second to none
ip
+2  A: 

I'm partial to AdeptSQL. It's clean and intuitive and it DOESNT have the one feature that scares the hell out of me on alot of similar programs. One giant button that it you push it will automatically synchronize EVERYTHING without so much as a by-your-leave. if you want to synch the changes you have to do it yourself and I like that.

SomeMiscGuy
+1 Adept SQL Diff is a superb piece of software and relatively cheap
Steve Weet
+5  A: 

I like Open DBDiff. It's not the most complete tool, but it works great and it's free. And it's very easy to use.

A: 

Database Workbench can made it too

http://www.upscene.com/products.dbw.index.php

Cross database development

Use the Schema Compare and Migration Tools to compare testing and deployed databases, migrate existing databases to different database systems.

you can also made it with database Comparer

http://www.clevercomponents.com/products/dbcomparer/dbcomparer.asp

I use it for Firebird and it works well.

Hugues Van Landeghem
A: 

I would definitely go with AdeptSQL if you're using MSSQL. It's the least good looking but the most talented db compare tool amongst the ones I've tried. It can compare both the structure and the data. It tells you which tables exist on one db but does not exist on the other, compares the structure and data of the common ones and it can produce the script to synchronize the two. It's not free but has a 30 day trial (as far as I can remember)

davsan
+1  A: 

Try dbForge Data Compare for SQL Server. It can compare and sync any databases, even very large ones. Quick, easy, always delivers a correct result. Try it on your database and comment upon the product.

We can recommend you a reliable SQL comparison tool that offer 3 time’s faster comparison and synchronization of table data in your SQL Server databases. It's dbForge Data Compare for SQL Server and dbForge Schema Compare for SQL Server

Main advantages:

  • Speedier comparison and synchronization of large databases
  • Support of native SQL Server backups
  • Custom mapping of tables, columns, and schemas
  • Multiple options to tune your comparison and synchronization
  • Generating comparison and synchronization reports

Plus free 30-day trial and risk-free purchase with 30-day money back guarantee.

Devart
A: 

Zidsoft CompareData is free for comparing table/view data. You would need to buy a license to compare metadata after evaluation period expires, but the same application compares both data and metadata. Very fast.

Farid Z