January 7, 2008 at 9:56 pm
Hi all,
Please inform me how can I avoid getting the error message as "Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32)" in SQL 2005.This is thrown from the production environment while accessing some of the aspx pages in the application.But now major issues has been reported because of getting this error.But to mantain quality work we want to stop this error message getting displayed.
Please provide me with a permanent fix or work around to solve this issue.Thanks in advance.
January 8, 2008 at 5:47 am
You have nesting occuring in triggers on your database. You need to examine the code that is being called and examine the data structure to see what triggers you might have. You have a trigger that fires a trigger, that fires a trigger, etc. and there is a limit of 32 deep in which this can occur. You can turn this off by changing the "nested triggers" option in the server configuration. It only turns affects "AFTER" triggers and not "INSTEAD OF" triggers. These will still nest and could still lead to your problem.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
January 9, 2008 at 2:19 am
Not only triggers cause this error, the same problem is with nesting views...
June 2, 2009 at 6:57 am
This also happens a lot while executing cross database procedures
E.g. Trigger calls procedure in other db to update lookuptable
possible solution: run the procedure asynchronously (in a new connection)
January 11, 2011 at 2:51 am
Please check foreign key reference that have been not being used.
January 11, 2011 at 2:59 am
Please note: 3 year old thread.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 18, 2011 at 10:26 am
I just had the same.
Check if you have inside of your procedure/script un-commented sample how to execute the procedure with different parameters or something a like.
Good Luck,
Isabella
November 18, 2011 at 12:30 pm
:crazy:
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply