Help needed with UPDATE Trigger

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2009
Posts: 3
Reputation: drynish is an unknown quantity at this point 
Solved Threads: 0
drynish drynish is offline Offline
Newbie Poster

Help needed with UPDATE Trigger

 
0
  #1
Mar 31st, 2009
Hello!

I have a small issue with an AFTER UPDATE Triger I implemented on one table of my db. In my trigger, I do some validation and update others (not in inserted or deleted) rows of my table. Thoses rows are updated but are not triggering my trigger (similar to a controlled loop). I'm wondering if there's a way to get them running the same trigger.

I have a situation of child / parent in my rows sometimes. If I'm updating a child, I need the parent to be updated and validated. A child is not very at all and I really needs the parent to be the one who makes the "call".

Is it feasible?

Thanks
Last edited by drynish; Mar 31st, 2009 at 5:17 pm.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 88
Reputation: urtrivedi is an unknown quantity at this point 
Solved Threads: 14
urtrivedi urtrivedi is offline Offline
Junior Poster in Training

Re: Help needed with UPDATE Trigger

 
0
  #2
Apr 1st, 2009
Please post the exact case with table structure and trigger code.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 3
Reputation: drynish is an unknown quantity at this point 
Solved Threads: 0
drynish drynish is offline Offline
Newbie Poster

Re: Help needed with UPDATE Trigger

 
0
  #3
Apr 1st, 2009
Originally Posted by urtrivedi View Post
Please post the exact case with table structure and trigger code.
I found the issue, I needed to add a recursive triggers options in Database option which is defaulted to false.

I spend a lot time finding that info and honestly it's a normal comportement to eliminate the risk of endless looping.

I hope it's clear for anyone searching for that kind of issue.

The info is here: http://msdn.microsoft.com/en-us/libr...4(SQL.80).aspx
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC