tags:

views:

20

answers:

1

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
+1. Nice and simple!
p.campbell
Excellent and cool!! thanks
bochur1