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

后端 未结 8 605
粉色の甜心
粉色の甜心 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:19

    Use the "Go" after the END statement

    0 讨论(0)
  • 2020-12-16 11:20

    My problem is with a stored procedure, not a trigger, and no cursor. An EXEC command within the procedure is the reason as other answers pointed out. But I can't add GO anywhere before the EXEC command with SSMS v18.5. It gives me an error. Turns out the procedure nested inside has its own TRY/CATCH block. Adding GO at the end of that procedure doesn't solve the problem. I had to remove the TRY/CATCH block there to make it works. Not sure this is just me or it can be helpful to others.

    0 讨论(0)
提交回复
热议问题