sp_script_synctran_commands

Transact-SQL Reference

Transact-SQL Reference

sp_script_synctran_commands

Generates a script that contains the sp_addsynctrigger calls to be applied at Subscribers for updatable subscriptions. There is one sp_addsynctrigger call for each article in the publication. This stored procedure is executed at the Publisher on the publication database.

Syntax

sp_script_synctran_commands [@publication =] 'publication'
    [ , [@article =] 'article']

Arguments

[@publication =] 'publication'

Is the name of the publication to be scripted. publication is sysname, with no default.

[@article =] 'article'

Is the name of the article to be scripted. article is sysname, with a default of all, which specifies all articles are scripted.

Return Code Values

0 (success) or 1 (failure)

Results Set

sp_script_synctran_commands returns a result set that consists of a single nvarchar(4000) column. The result set forms the complete script necessary to create the sp_addsynctrigger calls to be applied at Subscribers.

Remarks

sp_script_synctran_commands is used in snapshot and transactional replication.

Permissions

Execute permissions default to the public role.

See Also

sp_addsynctriggers

System Stored Procedures