Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Sp to enable, disable or list all Triggers in a DB (SQL 7)

By Rodrigo Acosta,

This SP enable,disable or list all the Triggers in the given database.
If enable or disable are specified, finds all the triggers of all the tables
and enable or disable them, After that, it list all the triggers with it´s current state.
If List is specified, then it only list the triggers with it current state. I didn't mentioned before, so I apologize for the mail asking the version. For all the ones that asked, I'm posting the SQL 2000 version.

Total article views: 570 | Views in the last 30 days: 1
Related Articles

Disable and enable trigger

Disable and enable trigger


Enable Disable All Triggers in a Database

Enable Disable All Triggers in a Database


Using DMO to Enable and Disable Triggers

This short article shows you how to use SQL-DMO to enable or disable all the triggers in a database....


Need to get list of disable and enable triggers from server

Need to get list of disable and enable triggers


SQL Server 2000 Triggers

Disabled/enabled triggeres