码迷,mamicode.com
首页 > 其他好文 > 详细

Replicate Schema Changes

时间:2016-07-30 23:57:18      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:

Replication 能够将Article的Schema Change同步到Subscriber中,只需要将 Publication 的属性:Replicate Schema Changes 设置为Ture。

技术分享

技术分享

 

引用《Make Schema Changes on Publication Databases》:

If you make the following schema changes to a published article, they are propagated, by default, to Microsoft SQL Server Subscribers: 

  • ALTER TABLE
  • ALTER VIEW
  • ALTER PROCEDURE
  • ALTER FUNCTION
  • ALTER TRIGGER

If you do not want to replicate schema changes for a publication, disable the replication of schema changes in the Publication Properties - <Publication> dialog. On the Subscription Options page of the Publication Properties - <Publication> dialog box, set the value of the Replicate schema changes property to False.

To propagate only specific schema changes, set the property to True before a schema change, and then set it to False after the change is made. Conversely, to propagate most schema changes, but not a given change, set the property to False before the schema change, and then set it to True after the change is made.

Replicate Schema Changes

标签:

原文地址:http://www.cnblogs.com/ljhdo/p/5078044.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!