How can I remove all triggers from my tables. I have many tables, but about 20 of them have triggers and I want to remove them all.
+2
A:
run this:
SELECT 'DROP TRIGGER ' + name
FROM sysobjects
WHERE type = 'tr'
Then copy the results and run that in the query analyzer. That'll get rid of all the triggers.
Stephen Wrighton
2010-08-17 04:05:58
+1. Nice and simple!
p.campbell
2010-08-17 04:07:36
Excellent and cool!! thanks
bochur1
2010-08-17 04:20:21