gpt4 book ai didi

sql-server-2008 - 是否可以实时同步2个SQL Server数据库

转载 作者:行者123 更新时间:2023-12-04 07:17:13 24 4
gpt4 key购买 nike

我有一个在服务器 A 上运行的应用程序,并且数据库在同一台服务器上
有一个备用服务器 B,我使用它以防服务器 A 停机

应用程序将保持不变,但数据库中的数据在不断变化

有没有办法自动实时同步这两个数据库?

目前我等到所有用户都消失了,所以我可以在备份服务器中手动备份和恢复。

编辑:当我说实时时,我并不是字面上的意思,我可以处理长达一小时的延迟,但同步越快越好。

  • 我的数据库位于同一本地网络上的 2 台服务器上。
  • 其中 2 个是 SQL Server 2008,主数据库在 windows server 2008
  • 备份在 windows server 2003
  • Web 应用程序(内联网)正在使用数据库
  • 我可以使用 sql 代理(如果有帮助的话)

  • 我不知道什么样的细节可以帮助解决这个问题,请告诉我什么可以帮助。谢谢。

    编辑 : 我只需要同步所有表和表。
    第二个数据库是可写的,不是只读的

    最佳答案

    我想你想要的是Peer to Peer Transactional Replication .

    从链接:

    Peer-to-peer replication provides a scale-out and high-availability solution by maintaining copies of data across multiple server instances, also referred to as nodes. Built on the foundation of transactional replication, peer-to-peer replication propagates transactionally consistent changes in near real-time. This enables applications that require scale-out of read operations to distribute the reads from clients across multiple nodes. Because data is maintained across the nodes in near real-time, peer-to-peer replication provides data redundancy, which increases the availability of data.

    关于sql-server-2008 - 是否可以实时同步2个SQL Server数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16497486/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com