SQL SERVER – Disable All Triggers on a Database – Disable All Triggers on All Servers

Just a day ago, I received question in email regarding my article SQL SERVER – 2005 Disable Triggers – Drop Triggers.

Question : How to disable all the triggers for database? Additionally, how to disable all the triggers for all servers?
Answer:
Disable all the triggers for a single database:
USE AdventureWorks;
GO
DISABLE
TRIGGER Person.uAddress ON AdventureWorks;
GO

Disable all the triggers for all servers:
USE AdventureWorks;
GO
DISABLE
TRIGGER ALL ON ALL SERVER;
GO

Reference : Pinal Dave (https://blog.sqlauthority.com), BOL-Triggers

SQL Index, SQL Scripts, SQL Trigger
Previous Post
SQL SERVER – 2008 – Server Consolidation WhitePaper Download
Next Post
SQL SERVER – Business Intelligence (BI) Basic Terms Explanation

Related Posts

Leave a Reply