sp_helpmergealternatepublisher (Transact-SQL)


Applies To: SQL Server

Returns a list of all servers enabled as alternate Publishers for merge publications. This stored procedure is executed at the Subscriber on the subscription database.

Topic link icon Transact-SQL Syntax Conventions

sp_helpmergealternatepublisher [ @publisher = ] 'publisher', [ @publisher_db = ] 'publisher_db', [ @publication = ] 'publication'  

[ @publisher=] 'publisher'
Is the name of the alternate Publisher.publisher is sysname, with no default.

[ @publisher_db=] 'publisher_db'
Is the name of the publication database.publisher_db is sysname, with no default.

[ @publication=] 'publication'
Is the name of the publication.publication is sysname, with no default.

Column nameData typeDescription
alternate_publishersysnameName of the alternate Publisher.
alternate_publisher_dbsysnameName of the publication database.
alternate_publicationsysnameName of the publication.
alternate_distributorsysnameName of the distributor.
friendly_namenvarchar(255)Description of the alternate Publisher.
enabledbitSpecifies if the server is an alternate Publisher. 1 specifies that the Publisher is enabled as an alternate Publisher. 0 specifies that it is not enabled.

0 (success) or 1 (failure)

sp_helpmergealternatepublisher is used in merge replication.

During every merge session, the system queries both the Publisher and Subscriber for each one's list of alternate publishers. The merge process adds or drops entries in the list of alternate publishers, the result of which is that the list of alternate publishers at both the Subscriber and Publisher match.

Only members of the publication access list for the publication can execute sp_helpmergealternatepublisher.

System Stored Procedures (Transact-SQL)

Community Additions