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

后端 未结 8 660
粉色の甜心
粉色の甜心 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 10:59

    Remove the BEGIN and END for your IF statement

    example

    WHILE @@FETCH_STATUS = 0
    BEGIN
    
        IF @variable
        --NO BEGIN
           --Do this
        --NO END
    END
    

提交回复
热议问题