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  DB

By Rodrigo Acosta,

This one is For SQL 2000.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.
Thanks  to Michael Broesdorf for his contribution.

Total article views: 653 | Views in the last 30 days: 2
 
Related Articles
FORUM

Disable and enable trigger

Disable and enable trigger

SCRIPT

Enable Disable All Triggers in a Database

Enable Disable All Triggers in a Database

ARTICLE

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....

FORUM

Need to get list of disable and enable triggers from server

Need to get list of disable and enable triggers

FORUM

SQL Server 2000 Triggers

Disabled/enabled triggeres

 
Contribute