如何更新 3 个不同服务器中的同一个 SQL 数据库?
我正在开发一个在特定服务器中使用 SQL (2008 R2) 数据库的项目。
该项目需要位于 3 个不同的服务器中。
我在一台服务器上工作并更改数据库,然后必须手动复制数据库的信息并将其传输到其他两台服务器。
关于如何使这个过程更快、更自动化,有什么建议吗?
I am working on a project that uses SQL (2008 R2) databases in a specific server.
The project needs to be in 3 different servers.
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 SQL 比较。或者,您可以将数据库更改正确地视为代码,并将它们编写在脚本中(并保存在源代码管理中),然后像同一分支的任何其他代码一样部署它们。
You could use SQL Compare. 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.