码迷,mamicode.com
首页 > 其他好文 > 详细

查看系统触发器

时间:2016-12-31 15:32:09      阅读:347      评论:0      收藏:0      [点我收藏+]

标签:sel   join   isa   tab   code   class   cas   where   case   

 1 select * from sysobjects where xtype=TR
 2 
 3 select triggers.name as [触发器],tables.name as [表名],triggers.is_disabled as [是否禁用], 
 4 
 5 triggers.is_instead_of_trigger AS [触发器类型], 
 6 
 7 case when triggers.is_instead_of_trigger = 1 then INSTEAD OF 
 8 
 9 when triggers.is_instead_of_trigger = 0 then AFTER 
10 
11 else null 
12 
13 end as [触发器类型描述] 
14 
15 from sys.triggers triggers 
16 
17 inner join sys.tables tables on triggers.parent_id = tables.object_id 
18 
19 where triggers.type =TR 
20 
21 order by triggers.create_date 

 

查看系统触发器

标签:sel   join   isa   tab   code   class   cas   where   case   

原文地址:http://www.cnblogs.com/ps122/p/6239312.html

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