If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Trigger tracing ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-14-06, 05:01
zsevgymko zsevgymko is offline
Registered User
 
Join Date: May 2006
Posts: 6
Trigger tracing ?

Hi to all,

Here is my problem. I have two tables - T1 and T2, T2 referencing T1 with On Delete Cascade. I have a before delete trigger on T1 and after delete trigger on T2. I need do some operations in the trigger on T2, but only if the initial command was delete from T2, not from T1. So I need a way to determine in the trigger on T2 if the trigger on T1 has already fired. Is there any way I can do this?
Reply With Quote
  #2 (permalink)  
Old 08-24-06, 12:31
jay1972 jay1972 is offline
Registered User
 
Join Date: Jul 2002
Posts: 21
use the sequence object
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On