SQL Server 复制订阅者筛选器

发布于 2024-09-18 12:19:03 字数 185 浏览 3 评论 0原文

伙计们,我有一项任务要为我的同事做,我需要知道在 SQL Server 中使用复制时是否可以为订阅者指定过滤器?

我的意思是,我不想创建 3 种类型的发布者,每种发布者对应一个订阅者(发布者中的过滤器可以重定向到特定订阅者,但反之亦然。)

我想向订阅者指示数据类型复制。

有可能吗?

真的谢谢

Guys, I have a task to do for my colleague and I need to know if is possible to specify the filter to subscribers when using replication in SQL Server?

What I mean is, I don't want to create 3 types of publishers, each one to each one subscriber (with filter in publisher to redirect to specific subscriber but the inverse.)

I want to indicate to a subscriber the type of data to replicate.

It is possible?

Really Thanks

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

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

发布评论

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

评论(1

浅紫色的梦幻 2024-09-25 12:19:03

合并复制拓扑中可以进行一定程度的自定义。请参阅:过滤已发布的数据

参数化行过滤器,它们是
仅适用于合并复制。

使用参数化行过滤器,您
可以选择行的子集
发表。与静态过滤器不同的是
将相同的行子集发送到每个
订阅者,参数化行过滤器
使用由提供的数据值
订阅者发送订阅者
行的不同子集。

对于普通快照或事务复制,所有过滤都需要在发布者上进行。

A certain degree of customization is available in a Merge Replication topology. See: Filtering Published Data.

Parameterized row filters, which are
available only with merge replication.

Using parameterized row filters, you
can choose a subset of rows to be
published. Unlike static filters that
send the same subset of rows to every
Subscriber, parameterized row filters
use a data value supplied by the
Subscriber to send Subscribers
different subsets of rows.

For an ordinary snapshot or transactional replication, all of your filtering would need to happen on the publisher.

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