SQL server查看触发器是否被禁用
1 select a.name as 触发器名,b.name as 表名, 2 case a.is_disabled when 0 then '启用' when 1 then '禁用' else '未知错误' end as 状态 3 from sys.triggers a,sys.sysobjects b 4 where a.parent_id=b.id and a.type='TR' and b.name='Market_Indent_T'
1 select a.name as 触发器名,b.name as 表名, 2 case a.is_disabled when 0 then '启用' when 1 then '禁用' else '未知错误' end as 状态 3 from sys.triggers a,sys.sysobjects b 4 where a.parent_id=b.id and a.type='TR' and b.name='Market_Indent_T'