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.