語言

MergePublication.ResynchronizeSubscription 方法

定義

將合併訂閱重新同步至您指定的已知驗證狀態。

public:
 void ResynchronizeSubscription(System::String ^ subscriber, System::String ^ subscriptionDB, Microsoft::SqlServer::Replication::ResynchronizeType synchronizeType, System::String ^ dateTime);
public void ResynchronizeSubscription(string subscriber, string subscriptionDB, Microsoft.SqlServer.Replication.ResynchronizeType synchronizeType, string dateTime);
member this.ResynchronizeSubscription : string * string * Microsoft.SqlServer.Replication.ResynchronizeType * string -> unit
Public Sub ResynchronizeSubscription (subscriber As String, subscriptionDB As String, synchronizeType As ResynchronizeType, dateTime As String)

參數

subscriber
String

訂閱者。

subscriptionDB
String

訂閱資料庫。

synchronizeType
ResynchronizeType

重新同步類型。

dateTime
String

變更重新同步的日期與時間。

備註

此 ResynchronizeSubscription 方法允許你強制收斂或同步訂閱資料庫至特定時間點,例如最後一次成功驗證的時間點,或指定日期。 使用此方法重新同步訂閱時,快照不會重新套用。

此 ReadLastValidationDateTimes 方法可用來確定最後一次成功驗證訂閱的日期與時間。

呼叫 ResynchronizeSubscription 等同於執行 sp_resyncmergesubscription。

ResynchronizeSubscription此方法只能由Publisher的系統管理員固定伺服器角色成員,或是發表資料庫中固定資料庫db_owner角色的成員呼叫。

適用於