ALTER TRIGGER
changes a DML (AFTER/INSTEAD OF), DDL or logon trigger
What changes
- Input
- module body (its own statements and their sources)
- Output or change
- module definition
Syntax at a glance
ALTER TRIGGER schema_name.trigger_name ON ( table | view ) [ WITH <dml_trigger_option> [ ,...n ] ] ( FOR | AFTER | INSTEAD OF ) { [ DELETE ] [ , ] [ INSERT ] [ , ] [ UPDATE ] } [ NOT FOR REPLICATION ] AS { sql_statement [ ; ] [ ...n ] | EXTERNAL NAME <method specifier> [ ; ] }
Work example
A trigger needs a reviewed event, definition, or execution-state change.
Test multi-row statements, nested triggers, transaction behavior, and callers on a restored copy.
Check your work The trigger handles a multi-row change once and keeps the documented side effects.
Open Microsoft Learn for full syntax, permissions, and details for your version.