简体   繁体   English

如何在 3 个不同的服务器中更新相同的 SQL 数据库?

[英]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.

相关问题 如何在不同服务器上更新其他表中的SQL表 - How to update SQL table from other table when they are on different servers 如何在 SQL Server 中创建和查询链接的数据库服务器? - How do I create and query linked database servers in SQL Server? 如何在 SQL Server 中同时更新多个数据库? - How can i update multiple databases at the same time in SQL Server? 如何将文件复制和更新SQL数据库作为单个事务? - How can I copy a file and update SQL database as a single transaction? 如何从XML文件更新SQL数据库表? - How can I update an SQL database table from an XML file? 如何更新多个SQL Server数据库架构 - How can I update multiple SQL Server database schemas 如何对不同的数据库系统执行SQL查询? - How can I perform the SQL query against different database systems? 我可以从不同服务器上的多个数据库中联接多表吗? - Can I join multilpe tables from multiple database across different servers? 我如何从数据库中获取信息,就像我将数据与存储的信息插入数据库中以更新数据库一样 - How can I get the information form the database as the same form as I insert the data on it with the stored information in order to update it 如果数据库列可能不同,如何将数据存储在SQL数据库中? - How do I store data in an SQL database if the database columns can be different?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM