How do I prevent a database trigger from recursing?

Not sure if it is pertinent to the OP’s question anymore, but in case you came here to find out how to prevent recursion or mutual recursion from happening in a trigger, you can test for this like so:

IF TRIGGER_NESTLEVEL() <= 1/*this update is not coming from some other trigger*/

MSDN link

Leave a Comment