sp_reinitmergepullsubscription
Marks a merge pull subscription for reinitialization the next time the Merge Agent runs. This stored procedure is executed at the Subscriber in the subscription database.
Syntax
sp_reinitmergepullsubscription [ [ @publisher = ] 'publisher' ]
[ , [ @publisher_db = ] 'publisher_db' ]
[ , [ @publication = ] 'publication' ]
[ , [ @upload_first = ] 'upload_first'
Arguments
[@publisher =] 'publisher'
Is the name of the Publisher. publisher is sysname, with a default of ALL.
[@publisher_db =] 'publisher_db'
Is the name of the Publisher database. publisher_db is sysname, with a default of ALL.
[@publication =] 'publication'
Is the name of the publication. publication is sysname, with a default of ALL.
[@upload_first =] 'upload_first'
Is the name of the Subscriber database. upload_first is nvarchar(5), with a default of FALSE. If true, changes are uploaded before the subscription is reinitialized. If false, changes are not uploaded.
Return Code Values
0 (success) or 1 (failure)
Remarks
sp_reinitmergepullsubscription is used in merge replication.
sp_reinitmergepullsubscription can be called from the Subscriber.
Permissions
Only members of the sysadmin fixed server role or the db_owner fixed database role can execute sp_reinitmergepullsubscription.