Getting List of Disabled or Enabled Triggers in Database in SQL Server
Hello everyone,
In this article, I will provide information about getting the list of disabled or active Triggers in the database in SQL Server.
In SQL Server, in some cases you may want to get the list of disabled or active Triggers.
You can easily do this using the code below.
SELECT TBL.name AS TableName,
SCHEMA_NAME(TBL.schema_id) AS Table_SchemaName,
TRG.name AS TriggerName,
TRG.parent_class_desc,
CASE
WHEN TRG.is_disabled = 0 THEN
'Enable'
ELSE
'Disable'
END AS TRG_Status
FROM sys.triggers TRG
INNER JOIN sys.tables TBL
ON TBL.object_id = TRG.parent_id
AND TRG.is_disabled = 1; --use this filter to get Disabled/Enabled Triggers
Good luck to everyone in business and life.