SQL Server - Transactional Replication (partial data only)

拜拜、爱过 提交于 2020-01-05 12:11:18

问题


I have 6 months of data, how do I replicate only the most current 3 months of data to the subscribers?


回答1:


You can use filtered replication. When you read examples about filtered replication, you'll probably see it referring to a branch office scenario where a single central office stores data for several branch offices, and each branch only wants to replicate their own data. It involves creating filters on a key, and in your case, you'll want to use your date range as the key.

Here's an article on filtered replication with transactional replication, and another on filtering with merge replication.



来源:https://stackoverflow.com/questions/495680/sql-server-transactional-replication-partial-data-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!