开发者

SQL Server 2005 - removing table triggers?

开发者 https://www.devze.com 2023-01-11 16:50 出处:网络
How can I remove all triggers from my tables. I have many tables, but about 2开发者_JAVA技巧0 of them have triggers and I want to remove them all.run this:

How can I remove all triggers from my tables. I have many tables, but about 2开发者_JAVA技巧0 of them have triggers and I want to remove them all.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消