Delen via


Getting Information About DML Triggers

In SQL Server 2005, you can determine the types of triggers on a table, the name of the trigger, its owner, and the date it was created.

You can also perform the following:

  • Gain information about the definition of a trigger if it was not encrypted when created or modified. You may have to see the definition of the trigger to see its Transact-SQL statements or to understand how it affects the table upon which it is defined.

  • List the objects used by the specified trigger. This information can be used to identify the objects that affect the trigger if they are changed or deleted in the database.

The OBJECTPROPERTY function reports whether a trigger is an AFTER or INSTEAD OF trigger through the ExecIsInsteadOfTrigger and ExecIsAfterTrigger properties.

To obtain information about triggers in the database

To obtain information about events that fire a trigger

To view the definition of a trigger

To view the dependencies of a trigger