Export (0) Print
Expand All
Expand Minimize

sp_dropmergealternatepublisher (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Removes an alternate Publisher from a merge publication. This stored procedure is executed at the Subscriber on the subscription database.

Topic link icon Transact-SQL Syntax Conventions

sp_dropmergealaternatepublisher [ @publisher = ] 'publisher'    , [ @publisher_db = ] 'publisher_db'    , [ @publication = ] 'publication'    , [ @alternate_publisher = ] 'alternate_publisher'    , [ @alternate_publisher_db = ] 'alternate_publisher_db'    , [ @alternate_publication = ] 'alternate_publication'

[ @publisher=] 'publisher'

Is the name of the current Publisher. publisheris sysname, with no default.

[ @publisher_db=] 'publisher_db'

Is the name of the current publication database. publisher_dbis sysname, with no default.

[ @publication =] 'publication'

Is the name of the current publication. publication is sysname, with no default.

[ @alternate_publisher=] 'alternate_publisher'

Is the name of the alternate Publisher to drop as the alternate synchronization partner. alternate_publisheris sysname, with no default.

[ @alternate_publisher_db=] 'alternate_publisher_db'

Is the name of the publication database to drop as the alternate synchronization partner publication database. alternate_publisher_dbis sysname, with no default.

[ @alternate_publication=] 'alternate_publication'

Is the name of the publication to drop as the alternate synchronization partner publication. alternate_publicationis sysname, with no default.

0 (success) or 1 (failure)

sp_dropmergealternatepublisher is used in merge replication.

Only members of the sysadmin fixed server role or the db_owner fixed database role can execute sp_dropmergelternatepublisher.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft