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'

 阅读详细原文:SQL Server触发器状态查询指南:如何快速查看触发器是否被禁用 - 码农刚子的开发笔记

posted @ 2019-05-16 12:14  码农刚子  阅读(1912)  评论(2)    收藏  举报