得到触发器的状态
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 表名,状态
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 表名,状态