共用方式為


DisableSynchronizationPartner 方法

Disables the specified synchronization partner for this merge publication.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public Sub DisableSynchronizationPartner ( _
    publisher As String, _
    publicationDB As String, _
    publication As String _
)
'用途
Dim instance As MergePublication
Dim publisher As String
Dim publicationDB As String
Dim publication As String

instance.DisableSynchronizationPartner(publisher, _
    publicationDB, publication)
public void DisableSynchronizationPartner(
    string publisher,
    string publicationDB,
    string publication
)
public:
void DisableSynchronizationPartner(
    String^ publisher, 
    String^ publicationDB, 
    String^ publication
)
member DisableSynchronizationPartner : 
        publisher:string * 
        publicationDB:string * 
        publication:string -> unit 
public function DisableSynchronizationPartner(
    publisher : String, 
    publicationDB : String, 
    publication : String
)

參數

備註

[!附註]

未來的 Microsoft SQL Server 版本將移除這項功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。

The DisableSynchronizationPartner 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 DisableSynchronizationPartner is equivalent to executing sp_dropmergealternatepublisher.

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

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