Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32)

后端 未结 8 639
粉色の甜心
粉色の甜心 2020-12-16 10:37

I am creating a store procedure but while executing the procedure i am getting the particular error.

Msg 217, Level 16, State 1, Procedure SendMail_Renewapp,

8条回答
  •  粉色の甜心
    2020-12-16 11:05

    ALTER your database for RECURSIVE_TRIGGERS.

    If nested triggers are allowed and a trigger in the chain starts an infinite loop, the nesting level is exceeded and the trigger terminates. That time you do get this error. so simply rune this query.

    USE yourdatabase 
     GO
        -- Turn recursive triggers OFF in the database. 
          ALTER DATABASE yourdatabase    
          SET RECURSIVE_TRIGGERS OFF 
    GO
    

    Hope your problem will resolve.

提交回复
热议问题