Determines if a user-defined trigger or stored procedure is being called in the context of an immediate-updating trigger.
sp_check_for_sync_trigger [@tabid =] 'tabid'
[,[@trigger_op =] 'trigger_op'] [OUTPUT]
Value | Description |
---|---|
ins | INSERT trigger |
upd | UPDATE trigger |
del | DELETE trigger |
NULL (default) |
0 indicates that the stored procedure is not being called within the context of an immediate-updating trigger. 1 indicates that it is being called within the context of an immediate-updating trigger and is the type of trigger being returned in @trigger_op.
sp_check_for_sync_trigger is used in snapshot and transactional replication.
Members of the public role can execute sp_check_for_sync_trigger.
Option: Immediate-updating Subscribers (Snapshot) | System Stored Procedures |