Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compare two SQL databases

I've made a whole bunch of changes on my development machine (table definitions, stored procedures etc). It there a script or a free tool I can run which will find all the differences between development and the live server?

like image 236
fearofawhackplanet Avatar asked Dec 22 '10 09:12

fearofawhackplanet


2 Answers

Short answer is that there is no out of the box script that will tell you the differences between two databases. It can be created using information schema views but it can be quite complex if you really want to compare everything.

I’d recommend you try one of the third party tools mentioned here to get the job done.

I’ve had good success with ApexSQL Diff, especially on large databases but you can’t go wrong with any of the tools mentioned here.

like image 142
Ryszard Wojchiechowsky Avatar answered Oct 23 '22 13:10

Ryszard Wojchiechowsky


SQL Compare is not free, but has a 14 day free trial.

Visual Studio has a schema comparison tool too (since 2005).

like image 20
Oded Avatar answered Oct 23 '22 13:10

Oded