首页 > 代码库 > 查看系统触发器

查看系统触发器

 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 

 

查看系统触发器