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
)
参数
- syncPartner
类型:Microsoft.SqlServer.Replication.SynchronizationPartner
The alternative synchronization source.
注释
![]() |
---|
后续版本的 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.
请参阅
参考
Microsoft.SqlServer.Replication 命名空间