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


Метод TransPublication.ReinitializeAllSubscriptions (Boolean)

Marks all subscriptions to the publication for reinitialization, with the option to invalidate an existing snapshot.

Пространство имен:  Microsoft.SqlServer.Replication
Сборка:  Microsoft.SqlServer.Rmo (в Microsoft.SqlServer.Rmo.dll)

Синтаксис

'Декларация
Public Sub ReinitializeAllSubscriptions ( _
    invalidateSnapshot As Boolean _
)
'Применение
Dim instance As TransPublication 
Dim invalidateSnapshot As Boolean

instance.ReinitializeAllSubscriptions(invalidateSnapshot)
public void ReinitializeAllSubscriptions(
    bool invalidateSnapshot
)
public:
void ReinitializeAllSubscriptions(
    bool invalidateSnapshot
)
member ReinitializeAllSubscriptions : 
        invalidateSnapshot:bool -> unit
public function ReinitializeAllSubscriptions(
    invalidateSnapshot : boolean
)

Параметры

  • invalidateSnapshot
    Тип: System.Boolean
    Specifies whether an existing snapshot should be invalidated and re-created before subscriptions are reinitialized.

Замечания

The ReinitializeAllSubscriptions method can only be called by members of the sysadmin fixed server role at the Publisher, by members of the db_owner fixed database role on the publication database, or by a user that created a subscription.

Calling ReinitializeAllSubscriptions is equivalent to executing sp_reinitsubscription.

См. также

Справочник

TransPublication Класс

Перегрузка ReinitializeAllSubscriptions

Пространство имен Microsoft.SqlServer.Replication