码迷,mamicode.com
首页 > 数据库 > 详细

SQL之删除触发器

时间:2017-06-30 19:59:54      阅读:273      评论:0      收藏:0      [点我收藏+]

标签:存在   bsp   objects   style   type   rom   span   from   object   

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

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

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

 

SQL之删除触发器

标签:存在   bsp   objects   style   type   rom   span   from   object   

原文地址:http://www.cnblogs.com/Amedeo/p/7020110.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!