SQL之删除触发器

 比如要删除的触发器名字叫dbo.test_trigger.

先判断这个触发器是否存在,判断存在后删除

if exists (select * from sysobjects where name = 'test_trigger' and type='TR')
drop trigger dbo.test_trigger

 

posted on 2017-06-30 19:00  Arthurian  阅读(2580)  评论(0编辑  收藏  举报