查看系统触发器
Posted ps122
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了查看系统触发器相关的知识,希望对你有一定的参考价值。
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
以上是关于查看系统触发器的主要内容,如果未能解决你的问题,请参考以下文章