Hi.....
Ques: Suppose I made an after Trigger on Delete. Now I fire Delete * From tablename. will this trigger work? Now do I fire truncate from table name (instead of delete command). will this trigger work now? If yes or no then why?
Suppose I made an after Trigger
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Pravin MoreRank #1,419 · 1.2K reputationPosted Dec 19, 2011, 11:21 PM EST
yes it will work for Delete but TRUNCATE statements do not fire triggers.
Thanks,
Pravin.
AartiRank #2,383 · 594 reputationPosted Dec 20, 2011, 8:20 PM EST
A TRUNCATE TABLE statement is in effect a DELETE statement, it does not activate a trigger because the operation does not log individual row deletions.