共用方式為


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 複寫中已被取代的功能