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 命名空間