RecursiveTriggers Property (SQL-DMO)

The RecursiveTriggers property controls nested call behavior for Microsoft® SQL Server™ triggers.

Applies To

DBOption Object

Syntax

object.RecursiveTriggers [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value True or False

Remarks

When True, a trigger may fire more than once when statement execution directs more than a single trigger execution. For example, a table T1 with trigger Trig1 may update table T2 with Trig2 enabled, which itself updates table T1. If the update of T1 directed by Trig2 causes modification that would normally fire trigger Trig1 and RecursiveTriggers is True, then trigger Trig1 will fire a second time.

When False, a trigger will execute only once regardless of the actions of itself or other triggers enabled on other tables.

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetRecursiveTriggers(LPBOOL pRetVal);

HRESULT SetRecursiveTriggers(BOOL NewValue);

  


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