문제

We are currently updating our SQL Server database create and update scripts by hand, and I'm looking for a better way.

I've worked extensively with MySQL Workbench before, and it has functionality to update a database creation script to match a live database, and in the process also produce an update script.

Is there similar functionality available in SQL Server? If so, can you please provide references to it?

도움이 되었습니까?

해결책

If you're using Visual Studio, the answer is SQL Server Data Tools (SSDT). It comes with SQL Schema Compare functionality. Check it out here: http://msdn.microsoft.com/en-us/data/tools.aspx

SSDT can also do a lot of other stuff, like automated database testing, automated build and deployment of databases, etc.

There are also 3rd party alternatives, such as Red Gate's SQL Compare: http://www.red-gate.com/products/sql-development/sql-compare/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top