Compare structures of two databases?

前端 未结 17 1529
我在风中等你
我在风中等你 2021-02-01 04:30

I wanted to ask whether it is possible to compare the complete database structure of two huge databases. We have two databases, the one is a development database, the other a p

相关标签:
17条回答
  • 2021-02-01 04:33

    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)

    0 讨论(0)
  • 2021-02-01 04:33

    Try dbForge Scheme Compare for SQL server. It can compare and synchronize any database scheme. Quick, easy, always delivering a correct result. See how it flies on your database!

    0 讨论(0)
  • 2021-02-01 04:35

    SchemaCrawler is a free, platform-independent tool that allows you to compare database structures. The two databases do not need to be online at the same time - you can save your database structure into a human-readable text file. Comaprisons are done using standard diff tools.

    I would recommend automating the comparison as a part of build and deploy process, to ensure that your production systems are never out of date.

    0 讨论(0)
  • 2021-02-01 04:36

    I tried mysqldiff without success, so I would like to enrich the future readers by drawing attention to mysqlworkbench's compare function. http://dev.mysql.com/doc/workbench/en/wb-database-diff-report.html#c13030

    if you open a model tab, and select the databases menu, you get a compare schemas option, which you can use to compare two different schemas on two different servers, or two schemas on the same server, or a schema and a model, or a lot of other options i haven't tried yet.

    0 讨论(0)
  • 2021-02-01 04:38

    Check out Gemini Delta - SQL Difference Manager for .NET. A free beta version is available for download, but the full version is only a few days away from public release.

    It doesn't compare row-level data differences, but it compares tables, functions, sprocs, etc... and it is lightning fast. (The new version, 1.4, loads and compares 1k Sprocs in under 4 seconds, compared with other tools I've tested which took over 10 seconds.)

    Everyone is right though, RedGate does make great tools.

    0 讨论(0)
  • 2021-02-01 04:39

    What about http://www.mysqldiff.org/ which is freeware?

    0 讨论(0)
提交回复
热议问题