得到触发器的状态

select 表名=object_name(parent_obj),触发器名=name
,状态=case status & power(2,11) when power(2,11) then '禁用' else '启用' end
from sysobjects
where type='TR' order by 表名,状态

posted on 2009-07-23 17:59  martian6125  阅读(97)  评论(0编辑  收藏  举报