Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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: 569 | Views in the last 30 days: 1
 
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

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones