I'm using SQL SERVER 2014.
I have a table
where it has 2 triggers (for update
).
Trigger 1 - updates columns A
. (which causes Trigger 2 to be invoked)
Trigger 2 - updates columns B
. (which causes Trigger 1 to be invoked)
Question:
Within a trigger - is it possible to identify that the current update was triggered via a Trigger ?
Example :
1- User updated the table
2- Trigger 1 updates column A
3 -Trigger 2 invoked due to step 2.
4 - within Trigger 2 - is there any code that can detect that update was made via trigger in step2 ?