我该如何解决这个SQL问题 [英] How do I resolve this SQL problem
问题描述
我的sql server查询在执行查询时遇到问题我有这个错误
消息217,级别16,状态1,行1
最大存储过程,功能,触发器或视图嵌套级别超出(限制32)
我尝试过:
此查询为我获取空作业
从全部单位中选择dbo.selectparent(unitId),jobequal(从官员中选择前1名官员,其中officer.unitId =全部-unitId)为null,dbo.selectNoSon(unitId)为null
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
推荐答案
超出最大存储过程,函数,触发器或视图嵌套级别(限制32)
Maximum stored procedure ,function ,trigger,or view nesting level exceeded (limit 32)
消息很清楚。
您对SQL服务器的调用尝试接下来的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.
这篇关于我该如何解决这个SQL问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!