I need to list all triggers in SQL Server database with table name and table\'s schema.
I\'m almost there with this:
SELECT trigger_name = name, trig
SELECT OBJECT_NAME(PARENT_OBJECT_ID) AS PARENT_TABLE, OBJECT_NAME(OBJECT_ID) TRIGGER_TABLE, * FROM SYS.OBJECTS WHERE TYPE = 'TR'