When I try to delete a row in a table, I get an error!

"The selected row could not be delete. Prodcedure or tigger calls have nested too deeply"

Cheers!

asked 03 Apr '10, 21:23

Andrew's gravatar image

Andrew
33225
accept rate: 0%

edited 06 Apr '10, 13:25

Volker%20Barth's gravatar image

Volker Barth
31.5k321462677

Andrew... can you post details of your table and the related triggers?

(03 Apr '10, 22:34) Ron Hiner

This error occurs if there is a delete trigger on the table which causes another action - e.g. another insert, update, or delete - which causes another trigger or procedure to be called and that trigger/procedure causes another action to occur which causes another trigger/procedure to be called and that trigger/procedure causes another action to occur which .... etc, etc, etc ... until the nesting of calls to triggers or procedures is so deep that the database server go no longer processs the trigger/procedure call.

i.e. you have a run-away recursion in one of your (delete) triggers on the table.

For example, does your delete trigger attempt to delete another row in the same table? (which would then fire the trigger again!)

To resolve the problem, you need to first find the source of the recursion and then determine a way to stop the recursion before the nesting goes too deep.

permanent link

answered 03 Apr '10, 23:02

Mark%20Culp's gravatar image

Mark Culp
23.4k9132275
accept rate: 40%

As an addition to Mark's answer, I'd suggest that you take a look at the stored procedure debugger to help step through the process and figure out where it is going off the rails.

(07 Apr '10, 14:42) Rob Waywell
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×61
×17
×3

question asked: 03 Apr '10, 21:23

question was seen: 833 times

last updated: 06 Apr '10, 13:25