次の方法で共有


RecursiveTriggers Property

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

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

構文

object
.RecursiveTriggers [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    TRUE or FALSE

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetRecursiveTriggers(LPBOOL pRetVal);
HRESULT SetRecursiveTriggers(BOOL NewValue);

解説

If TRUE, a trigger can 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, trigger Trig1 fires a second time.

If FALSE, a trigger fires only once regardless of the actions of itself or other triggers enabled on other tables.

Applies To:

DBOption Object