[英]How can I update the same SQL Database in 3 different servers?
I am working on a project that uses SQL (2008 R2) databases in a specific server.我正在开发一个在特定服务器中使用 SQL (2008 R2) 数据库的项目。
The project needs to be in 3 different servers.该项目需要在 3 个不同的服务器中。
I work and make changes to the database in one server and then have to manually copy the database's info and take it to the other two servers.我在一台服务器上工作并对数据库进行更改,然后必须手动复制数据库的信息并将其带到另外两台服务器。
Any suggestions on how to make this procedure faster and automatic?有关如何使此过程更快和自动的任何建议?
You could use SQL Compare.您可以使用 SQL 进行比较。 Or you could treat your database changes correctly as code and write them in scripts (and save in source control) and deploy them like any other code for the same branch.
或者,您可以将数据库更改正确地视为代码并将它们编写在脚本中(并保存在源代码管理中),然后像部署同一分支的任何其他代码一样部署它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.