MergePublication.DisableSynchronizationPartner Method
Disables the specified synchronization partner for this merge publication.
Namespace: Microsoft.SqlServer.Replication
Assembly: Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
Syntax
'Declaration
Public Sub DisableSynchronizationPartner ( _
publisher As String, _
publicationDB As String, _
publication As String _
)
'Usage
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
)
Parameters
- publisher
Type: System.String
The Publisher name.
- publicationDB
Type: System.String
The publication database name.
- publication
Type: System.String
The publication name.
Remarks
Note
This feature will be removed in a future version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible.
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.
See Also
Reference
Microsoft.SqlServer.Replication Namespace