Lesson 18. Creating and Working with Triggers

A trigger is specialized type of stored procedure, which functions like an event procedure and that runs when data changes. You can create triggers that execute in response to inserts, updates, and deletes. Developers use triggers to enforce business rules and even to perform tasks such as inserting data into an audit log. This lesson explains:

Image How to create triggers

Image How to work with Insert, Update, and Delete triggers

What an Instead Of trigger is and why you’d want to use one

Downsides of triggers ...

Get Sams Teach Yourself T-SQL in One Hour a Day now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.