Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a problem in my sql server query when execut the query i have this errer
Msg 217,Level 16,State 1,Line 1
Maximum stored procedure ,function ,trigger,or view nesting level exceeded (limilt 32)

What I have tried:

This query gets null jobs for me
Select dbo.selectparent(unitId),jobequal from All-units where (select top 1 officerid from officer where officer.unitId=All-unitId) is null and dbo.selectNoSon(unitId) is null
Posted
Updated 6-Aug-18 11:18am

1 solution

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

Message is pretty clear.
your call to SQL server try to next more that 32 nested calls, but it is not allowed by server.
Check your stored procedures, check server call stack if possible or list calling tree, beware of recursive calls.
You are the only one able to do those checks.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900