Why we create trigger in stored procedure in sql
I want to know why we create trigger in SQL.Please dont post a link just clarify me in words what is exactly need of triggers to create in a database.
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
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 28, 2019, 5:30 PM EDT
https://www.c-sharpcorner.com/UploadFile/93126e/what-are-the-magic-tables-used-by-triggers-in-sql-server/
Please find link to understand more on trigger, It will create your doubt.
https://www.mssqltips.com/sqlservertip/4055/create-a-simple-sql-server-trigger-to-build-an-audit-trail/
Piyush PansuriyaRank #454 · 5.5K reputationPosted Mar 27, 2019, 8:55 PM EDT
Navneet Arora147 reputationPosted Mar 28, 2019, 12:25 AM EDT
Rajeev KumarRank #1,334 · 1.3K reputationPosted Mar 7, 2023, 12:33 AM EST
A trigger is a special type of stored procedure that automatically runs when an event occurs in the database server. DML triggers run when a user tries to modify data through a data manipulation language (DML) event. DML events are INSERT, UPDATE, or DELETE statements on a table or view