Is there a way to replicate some data not all data in db by sql server replication?

混江龙づ霸主 提交于 2019-12-30 11:48:29

问题


I want to replicate some of data that exists in my database. I want to replicate specified data. Is there a solution?


回答1:


USe Replication Row Filters:

Using static row filters, you can choose a subset of rows to be published. All Subscribers to a filtered publication receive the same subset of rows for the filtered table

alt text http://i.msdn.microsoft.com/ms151775.e4e1c995-fe81-4c05-b661-39087b323161(en-us,SQL.100).gif

See also:

  • How to: Define and Modify a Static Row Filter (SQL Server Management Studio)
  • How to: Define and Modify a Parameterized Row Filter for a Merge Article (SQL Server Management Studio)


来源:https://stackoverflow.com/questions/2309297/is-there-a-way-to-replicate-some-data-not-all-data-in-db-by-sql-server-replicati

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