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.

149 Views

Yavuz Selim Kart

I try to explain what I know in software and database. I am still improving myself by doing research on many programming languages. Apart from these, I am also interested in Graphic Design and Wordpress. I also have knowledge about SEO and Social media management. In short, I am a determined person who likes to work hard.

You may also like...

Don`t copy text!