A trigger can be modified by either, deleting the trigger and recreating a new trigger or by altering the existing trigger. The parameters from the ALTER TRIGGER statement are similar to those from the CREATE TRIGGER statement.
ALTER TRIGGER trigAddStudents
ON Students
FOR INSERT
AS
PRINT 'THE TRIGGER IS CHANGED.';
The command(s) completed successfully.
The above example modifies the trigger created earlier by changing the print that is to be displayed when the trigger is 'fired'.
INSERT INTO Students VALUES (7,'Tom George', 1, 45452, 2);
THE TRIGGER IS CHANGED.
(1 row(s) affected)
When the INSERT statement is executed, the modified trigger is 'fired.'