MergeSubscription.Reinitialize 方法

Marks the merge subscription for reinitialization.

命名空间:  Microsoft.SqlServer.Replication
程序集:  Microsoft.SqlServer.Rmo(在 Microsoft.SqlServer.Rmo.dll 中)

语法

声明
Public Sub Reinitialize ( _
    uploadFirst As Boolean _
)
用法
Dim instance As MergeSubscription 
Dim uploadFirst As Boolean

instance.Reinitialize(uploadFirst)
public void Reinitialize(
    bool uploadFirst
)
public:
void Reinitialize(
    bool uploadFirst
)
member Reinitialize : 
        uploadFirst:bool -> unit
public function Reinitialize(
    uploadFirst : boolean
)

参数

  • uploadFirst
    类型:System.Boolean
    A Boolean value that specifies whether to upload all changes from the Subscriber before reapplying the snapshot to reinitialize the subscription. If true, the changes are uploaded before applying the snapshot. If false, the changes are not uploaded.

注释

After calling the Reinitialize method, you must start synchronization to reinitialize the subscription. For more information, see 如何重新初始化订阅(RMO 编程).

The Reinitialize method can only be called by members of the sysadmin fixed server role at the Publisher or by members of the db_owner fixed database role on the publication database.

Calling Reinitialize is equivalent to executing sp_reinitmergesubscription.

请参阅

参考

MergeSubscription 类

Microsoft.SqlServer.Replication 命名空间