Recursive Trigger

  • I have number of Triggers on My Database but I want to make one of the Trigger as Recursive.Is it Possible?

  • It's possible, it's not usually a good idea. There is a max permissible recursion level of 32. If you go past that, the trigger will fail and the whole lot will roll back.

    Also you have to enable recursive triggers. It's a database setting, you should be able to change it via Enterprise manager.

    what are you trying to do that you need recursive triggers?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I want recursive triggers ON only for one of the triggers.I want for all other Triggers recursive triggers OFF .Is it possible?

  • No. Recursive triggers are a database-level setting.

    What are you trying to do that requires recursive triggers?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply