SQL Triggers (1 table)
I'm using a trigger on insert (Table1) (i.e. 300 records) to insert records into table2 used for reporting. On the same table (table1) I have another trigger on insert that will calculate a value & insert that value along with some other field values into table3. Is there a way to only fire the 2nd trigger on table1 upon completion of the first trigger on table1. For example, on the first insert to table1 there are 300 records. Does trigger 2 fire when all the records inserted to table1 are copied to table2? or does it fire after each record is inserted. I need trigger 2 to only fire after all 300 records are finished processing on table2.
Comments.
|