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


Метод MergePublication.EnableSynchronizationPartner

Enables a specified synchronization partner for this merge publication.

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

Синтаксис

'Декларация
Public Sub EnableSynchronizationPartner ( _
    syncPartner As SynchronizationPartner _
)
'Применение
Dim instance As MergePublication 
Dim syncPartner As SynchronizationPartner

instance.EnableSynchronizationPartner(syncPartner)
public void EnableSynchronizationPartner(
    SynchronizationPartner syncPartner
)
public:
void EnableSynchronizationPartner(
    SynchronizationPartner^ syncPartner
)
member EnableSynchronizationPartner : 
        syncPartner:SynchronizationPartner -> unit
public function EnableSynchronizationPartner(
    syncPartner : SynchronizationPartner
)

Параметры

Замечания

ПримечаниеПримечание

В будущей версии Microsoft SQL Server этот компонент будет удален. Не используйте его при работе над новыми приложениями и как можно быстрее измените приложения, в которых он в настоящее время используется.

The EnableSynchronizationPartner 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 EnableSynchronizationPartner is equivalent to executing sp_addmergealternatepublisher.

См. также

Справочник

MergePublication Класс

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

Другие ресурсы

Устаревшие функции репликации SQL Server