How to find a trigger is enabled / disabled. | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

How to find a trigger is enabled / disabled.

With the help of ALTER TABLE we can disable/Enable a trigger on a table.
But how can we find that the trigger is disabled/Enabled. Rushendra
select objectproperty(object_id(‘trigger_name’), ‘ExecIsTriggerDisabled’)
There is a list of properties regarding triggers that you can find in BOL. Bambola.

Thanks bambola. Rushendra
ObjectProperty function is one of the best invention in SQL 7 and fine tuned in SQL 2K with enhancements. _________
Satya SKJ
Moderator
SQL-Server-Performance.Com

]]>

Software Reviews | Book Reviews | FAQs | Tips | Articles | Performance Tuning | Audit | BI | Clustering | Developer | Reporting | DBA | ASP.NET Ado | Views tips | | Developer FAQs | Replication Tips | OS Tips | Misc Tips | Index Tuning Tips | Hints Tips | High Availability Tips | Hardware Tips | ETL Tips | Components Tips | Configuration Tips | App Dev Tips | OLAP Tips | Admin Tips | Software Reviews | Error | Clustering FAQs | Performance Tuning FAQs | DBA FAQs |