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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Mar 28, 2019, 9:30 PM
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/
Rajeev KumarPosted Mar 7, 2023, 5:33 AM
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
Navneet AroraPosted Mar 28, 2019, 4:25 AM
Piyush PansuriyaPosted Mar 28, 2019, 12:55 AM