Поделиться через


Метод 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