Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

SQL Server Database Triggers

via LinkedIn Learning

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to use SQL Server database triggers to automate routine tasks and facilitate a more consistent, reliable, and predictable system.

Syllabus

Introduction
  • Automate SQL Server with triggers
  • What you should know
  • Make the most of the exercise files
1. Trigger Fundamentals
  • What are SQL Server triggers?
  • Two triggers types: INSTEAD OF and AFTER
  • Create a trigger to print a message
  • Timestamp a table modification
  • Firing INSTEAD OF triggers
  • Challenge: Create a trigger
  • Solution: Create a trigger
2. Work with Modified Data
  • Read values modified by a trigger
  • Using the inserted logical table
  • Using the deleted logical table
3. Database- and Server-Level Triggers
  • Triggers on CREATE, ALTER, or DROP
  • Rollback database modifications
  • Reading the EVENTDATA() XML
  • Writing data from the EVENTDATA() function
  • Challenge: Create a DDL trigger
  • Solution: Create a DDL trigger
4. Trigger Management
  • View all triggers in a database
  • Enable and disable triggers
  • Disable nested triggers
  • Recursive triggers
  • Reorder trigger execution
5. Project: Managing Inventory
  • Creating triggers to maintain inventory
  • Counting shipments received
  • Subtract items sold
  • Reorder items when low
Conclusion
  • Next steps

Taught by

Adam Wilbert

Reviews

4.8 rating at LinkedIn Learning based on 255 ratings

Start your review of SQL Server Database Triggers

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.