sp_reinitmergesubscription (T-SQL)

Marks a merge subscription for reinitialization the next time the Merge Agent runs.

Syntax

sp_reinitmergesubscription [[@publication =] 'publication'
    [,[@subscriber =] 'subscriber', [@subscriber_db =] 'subscriber_db'

Arguments
[@publication =] 'publication'
Is the name of the publication. publication is sysname, with a default of all.
[@subscriber =] 'subscriber'
Is the name of the Subscriber. subscriber is sysname, with a default of all.
[@subscriber_db =] 'subscriber_db'
Is the name of the Subscriber database. subscriber_db is sysname, with a default of all.
Return Code Values

0 (success) or 1 (failure)

Remarks

sp_reinitmergesubscription is used in merge replication.

sp_reinitmergesubscription can be called from the Publisher to reinitialize merge subscriptions. It is advisable to rerun the Snapshot Agent as well.

Permissions

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

See Also
System Stored Procedures  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.