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.

The EnableSynchronizationPartner method is available only for instances of Microsoft SQL Server 2000 and SQL Server 2005.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.