Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 19th, 2004, 07:45 AM
Kris_Vanherck's Avatar
Kris_Vanherck Kris_Vanherck is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Belgium, Antwerp
Posts: 177 Kris_Vanherck User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 sec
Reputation Power: 5
Unhappy trigger infinite loop

The following trigger gives me an "nesting limit exceded error" (in other words an infinate loop)
the trigger is recursive but the recod i tested it out on had only 3 child rows, since no other triggers are active on that field, there is no way it could have gotton up to 32 al on it's own , or am i wrong

any help would be appriciated

PHP Code:
 CREATE TRIGGER dbo.Optionaliteit_Cascade
ON dbo
.Offerte_Lijnen
AFTER UPDATE
AS
IF 
UPDATE(Optioneel)
BEGIN
 UPDATE Offerte_Lijnen
 SET Optioneel 
= (SELECT inserted.Optioneel FROM inserted)
 
WHERE Parent_ID IN (SELECT inserted.Lijn_ID FROM inserted)
END 

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > trigger infinite loop


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT