Created
May 22, 2013 13:35
-
-
Save brazilnut2000/5627577 to your computer and use it in GitHub Desktop.
SQL: List all triggers and definitions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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