Advertisement

Triggers

  • Miguel Cebollero
  • Jay Natarajan
  • Michael Coles
Chapter

Abstract

SQL Server provides triggers as a means of executing T-SQL code in response to database object, database, and server events. SQL Server 2014 implements three types of triggers: classic T-SQL Data Manipulation Language (DML) triggers, which fire in response to INSERT, UPDATE, and DELETE events against tables; Data Definition Language (DDL) triggers, which fire in response to CREATE, ALTER, and DROP statements; and logon triggers, which fire in response to LOGON events. DDL triggers can also fire in response to some system SPs that perform DDL-like operations.

Copyright information

© Miguel Cebollero 2015

Authors and Affiliations

  • Miguel Cebollero
    • 1
  • Jay Natarajan
    • 1
  • Michael Coles
    • 1
  1. 1.ValricoUnited States

Personalised recommendations