December 14, 2022 at 12:00 am
Comments posted to this topic are about the item Nested Triggers
December 14, 2022 at 8:13 am
Can anyone imagine a scenario where such a catastrophic design decision was actually necessary?
December 14, 2022 at 9:58 am
Nightmare fuel, for sure!
December 14, 2022 at 6:03 pm
necessary, I'm not sure. I guess some auditing needs with relatively low workload. I wouldn't want a high insert/update level of batches if I had nested triggers.
I, in general, try to avoid triggers as much as possible, because they are somewhat hidden. I wish that every table in SSMS/ADS and in every return message, we'd see a note that a trigger was fired. Something like:
The command(s) completed successfully.
2 rows updated (1 trigger fired)
Or 2 triggers, or 10. The amount of time I've been confused by actions because I didn't think of triggers is far too high.
December 14, 2022 at 6:40 pm
I worked at a software house where the rules were quite strict on triggers - they were not to be used. So when we were getting glitches and couldn't work out what was happening, it took a long time to figure out that a rogue dev had added a (badly written) trigger. Some kind of message, as you suggest, would be very helpful.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply