SQL Server 相当于 MySQL 多主复制?

发布于 2024-09-06 23:49:26 字数 150 浏览 6 评论 0原文

MSSQL 是否有相当于 MySQL 的多主复制?如果是,它在 SQL Express 2008 中可用吗?我还看到它被称为两节点循环复制。

基本上,我有一个办公室内数据库,我希望它与云数据库完美(相对:))同步(我们将通过 VPN 访问)。读取和写入发生在两个节点上。

Is there an MSSQL equivalent of MySQL's multi-master replication? If so, is it available in SQL Express 2008? I've also seen it referred to as two node circular replication.

Basically, I have an in-office database that I want to be perfectly (relatively :) )in sync with a cloud database (we will have access via VPN). Reads and writes occur at both nodes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

那一片橙海, 2024-09-13 23:49:27

SQL Server 2008 企业版和标准版提供:

SQL Server 2008 Express 有限制 功能:

在这两种情况下,您都需要编写定制的解决方案。

SQL Server MVP Deep Dives 中有一个很棒的章节,名为“穷人的 SQL Server 日志传送”。 ”它将带您完成整个过程。

SQL Server 2008 Enterprise and Standard editions offer:

SQL Server 2008 Express has limited functionality with:

In both cases, you'll need to write a customized solution.

There is an excellent chapter in SQL Server MVP Deep Dives called "The Poor Man's SQL Server Log Shipping." It will take you through the entire process.

话少心凉 2024-09-13 23:49:27

当您说云数据库时,您指的是 SQL Azure 吗?如果是这样,SQL Azure 不支持复制。

如果您的云数据库是 SQL Server 的完整副本(即不是 Express),您可以设置具有可更新订阅的事务发布,或使用合并发布。这两个选项都允许您同步任一数据库中的更改。

编辑

澄清一下,您可以使用 SQL Server Express 进行复制,但只能作为订阅者使用。发布者需要是Workgroup版本或以上版本。

When you say a cloud database, do you mean SQL Azure? If so, SQL Azure doesn’t support replication.

If your cloud database is a full copy of SQL Server (i.e. not Express) you can set up a transactional publication with updatable subscriptions, or use a merge publication. Both options will let you synchronise changes in either database.

Edit

Just to clarify, you can use SQL Server Express for replication, but only as a subscriber. The publisher needs to be Workgroup edition or above.

呆橘 2024-09-13 23:49:27

除了其他人发布的内容之外,我还想提到合并复制,以及 MSDN 上有关 选择适当的复制类型。基本上,您选择合并还是事务(更新订阅者)取决于不同节点的写入比例以及冲突更改的可能性。

In addition to what others have posted, I'd also mention merge replication, and an article on MSDN about Selecting the Appropriate Type of Replication. Basically, whether you choose Merge or Transactional (with updating subscribers) depends on what the proportion of writes are at the different nodes, and the likelihood of conflicting changes.

怪异←思 2024-09-13 23:49:26

Peer-to-Peer Transactional Replication. Is an Enterprise only feature. Another option is an updatable subscription for Transactional Replication, see Updatable Subscriptions for Transactional Replication. And finally you can roll your own using Service Broker, which is the only option which will work with an Express client, as long as the 'cloud' edition is non-Express.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文