Skip to content

Instantly share code, notes, and snippets.

@brazilnut2000
Created May 22, 2013 13:35
Show Gist options
  • Save brazilnut2000/5627577 to your computer and use it in GitHub Desktop.
Save brazilnut2000/5627577 to your computer and use it in GitHub Desktop.
SQL: List all triggers and definitions
select OBJECT_NAME(triggers.parent_id) as [object_name],
triggers.name,
triggers.parent_class_desc,
triggers.type_desc,
triggers.is_disabled,
triggers.is_instead_of_trigger,
OBJECT_DEFINITION(triggers.object_id)
as trigger_definition
from sys.triggers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment