| Login

Search this Blog


Links I like to keep around




Here are the most recent postings to this blog. Use the archive calendar or search to find other entries.
Jun24

Written by:R Teachout
6/24/2008 7:46 PM

Disabling the trigger by going to each table is very tedious tak! 
The following scripts is a way of disabling all triggers on all tables of the given database in a single statement.

sp_msforeachtable “ALTER TABLE ? DISABLE TRIGGER all”

To re-enable all triggers, you can use following statement

sp_msforeachtable “ALTER TABLE ? ENABLE TRIGGER all”

 

Tags:

Your name:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel  

When you look at yourself from a universal standpoint, something inside always reminds or informs you that there are bigger and better things to worry about.
-Albert Einstein

Inspired by Nina