问题
I would like to make the update of the web application as automated as possible.
I'm looking for a tool that can compare two instances of a database and generate an update script for me. As part of the build process create a instance of the last version of the database (ie currently in production) and compare that to what has been changed on the development version.
Any input is appreciated.
回答1:
I like SqlDbDiff. Way cheaper than RedGate's SQL Compare
回答2:
I answered the same question here.
Best of luck! As you will see, I like the Red-Gate tools.
回答3:
See
Mechanisms for tracking DB schema changes
I believe the profluence of this question on SO speaks to the lack of a standard solution to this problem.
The great divide in approach is
- write delta scripts
- automate script generation from a "master" instance
It sounds like you want something in the latter camp.
Several such solutions and tools are noted in the above question.
回答4:
so far, satisfied with RedGate. We use SQL version control + SQL Compare. I've integrated it with Msbuild and Hudson. So that give us a complete continuous integration solution.
回答5:
Here are couple more to add to the list:
- ApexSQL Diff (schema compare) and ApexSQL Data Diff (data compare)
- Comparison toolset
- Adept SQL Diff
来源:https://stackoverflow.com/questions/176316/compare-tools-to-generate-update-script-for-sql-server