Megosztás a következőn keresztül:


sp_vupgrade_mergeobjects (Transact-SQL)

Regenerates the article-specific triggers, stored procedures, and views that are used to track and apply data changes for merge replication. Execute this procedure in the following situations:

  • If an object required by replication is accidentally dropped.

  • If you apply an update, such as a hotfix, that requires modification to one or more replication objects. Execute the procedure on each node after applying the update.

Executing this stored procedure does not require reinitialization of subscriptions. This procedure is not required if you install a service pack or upgrade to a new version of SQL Server.

Topic link iconTransact-SQL Syntax Conventions

Syntax

sp_vupgrade_mergeobjects [ [@login = ] 'login' ]
    [ , [ @password = ] 'password' ]
    [ , [ @security_mode = ] security_mode ]

Arguments

  • [ @login=] 'login'
    Is the system administrator login to use when creating new system objects in the distribution database. login is sysname, with a default of NULL. This parameter is not required if security_mode is set to 1, which is Windows Authentication.

  • [ @password=] 'password'
    Is the system administrator password to use when creating new system objects in the distribution database. password is sysname, with a default of '' (empty string). This parameter is not required if security_mode is set to 1, which is Windows Authentication.

  • [ @security_mode=] 'security_mode'
    Is the login security mode to use when creating new system objects in the distribution database. security_mode is bit with a default value of 1. If 0, SQL Server Authentication will be used. If 1, Windows Authentication will be used. When possible, use Windows Authentication.

Return Code Values

0 (success) or 1 (failure)

Remarks

sp_vupgrade_mergeobjects is used only for merge replication.

Permissions

Requires membership in the sysadmin fixed server role.