开发者

Migrating a SQL Server test database from development to test environment with a script?

开发者 https://www.devze.com 2023-01-24 04:02 出处:网络
I\'m doing a lot of development with a weekly demo to client. I have a development environment and a test environment.

I'm doing a lot of development with a weekly demo to client. I have a development environment and a test environment.

Every week I have to backup the database on development and then use remote desktop to restore it on the test server.

I've tried using MSdeploy to move the database but haven't been able to get the dropDestinationDatabase swit开发者_如何转开发ch working. See dropDestinationDatabase option on Web Deployment Commandline Tool

Does anyone know a good, simple technique to use here?


Red Gate's Sql Source Control allows you to automate promotes and connect your database to SVN.

I've not done it myself but I reckon that if the database is in svn then you could hook in a Team City build trigger to not only automate sql changes but monitor them in the same place as code changes.


RedGate Tools (SQL Compare, SQL Data Compare)

If you are using Visual Studio 2008 onwards, the GDR R2 database project is also a good solution.

0

精彩评论

暂无评论...
验证码 换一张
取 消