Created
April 29, 2024 12:37
-
-
Save ststeiger/3df04f1dd61d362a8743d3d29777a307 to your computer and use it in GitHub Desktop.
Trigger Status Information
This file contains 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 | |
sch.name AS table_schema | |
,tbl.name AS table_name | |
,trig.name AS trigger_name | |
,trig.is_disabled | |
,CASE WHEN is_disabled = 0 THEN 'Enabled' ELSE 'Disabled' END trigger_Status | |
FROM sys.triggers AS trig | |
LEFT JOIN sys.tables AS tbl ON tbl.object_id = trig.parent_id | |
LEFT JOIN sys.schemas AS sch ON sch.schema_id = tbl.schema_id | |
WHERE (1=1) | |
-- AND trig.name IN( 'TG_T_VWS_SVGElement_Update', 'TR_VWS_SVGElement_SVE_dateDeleted' ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment