SQL server allows us to determine the types of triggers on a table, view information about a trigger, to view a trigger, and to view the dependencies of it.
sp_helptrigger Students;
trigger_name trigger_owner isupdate isdelete isinsert
trigAddStudentsNew dbo 0 0 1
(1 row(s) affected)
The above example returns all the information about the triggers on the 'Students' table - the name of the triggers, type of the triggers etc.
sp_helptrigger Students, 'UPDATE';
trigger_name trigger_owner isupdate isdelete isinsert
(0 row(s) affected)
If we specify the type of the trigger, we only get the information about that type of trigger.
sp_helptext trigAddStudentsNew;
CREATE TRIGGER trigAddStudents
ON Students
FOR INSERT
AS
PRINT 'THE TRIGGER IS CHANGED.'
Here the trigger text is displayed.