首页 > 代码库 > 查看系统触发器
查看系统触发器
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
查看系统触发器
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。