Hi friends.....
What are triggers? How to invoke a trigger on demand?
Thanks....
Triggers concept
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 9, 2012, 5:52 PM EST
Triggers are special kind of stored procedures that get executed automatically when an INSERT, UPDATE or DELETE operation takes place on a table.
Triggers cannot be invoked on demand. They get triggered only when an associated action (INSERT, UPDATE and DELETE) happens on the table on which they are defined.
Triggers are generally used to implement business rules, auditing. Triggers can also be used to extend the referential integrity checks, but wherever possible, use constraints for this purpose, instead of triggers, as constraints are much faster
Thanks
Vikas MishraRank #559 · 4.3K reputationPosted Jan 10, 2012, 6:25 AM EST