How do you know if a trigger is enabled?


Sometimes as a DBA we must check if a trigger is enabled. To do so we can use sys.triggers.  The exact query is:

 select * from sys.triggers where is_disabled =0

By selecting all the data from sys.triggers you can see all triggers and if the column “is_disable” has a value of 1, that means that the trigger is disabled. To find more about sys.triggers check this link.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s