Unable to list the triggers.
[mircrosoft][SQL Server Native Client 10.0][SQL Server]对象名'sys.sysuserperms'无效,SQLSTATE=S0002
Unable to list the triggers.
[mircrosoft][SQL Server Native Client 10.0][SQL Server]无法预定义语句SQLSTATE=37000
你枚举触发器的SQL语句肯定修改过了,用不到'sys.sysuserperms'
你用这段试试,放在SQL_2008_MyDefine::Script\Objects\Trigger\SqlListQuery的value
{TABLOWNER ID, TABLE ID, OWNER ID, TRIGGER ID, ImplementationType ID, Assembly ID, MethodName ID, TRGTIME ID, TRGEVENT ...}
select
schema_name(tb.schema_id),
tb.name,
schema_name(tb.schema_id),
tr.name,
case(tr.type) when 'TA' then 'ClassMethod' else '' end,
a.name,
s.assembly_class + '.' + s.assembly_method,
case(tr.is_instead_of_trigger) when 1 then 'instead of' else 'after' end,
te.type_desc + ','
from
[%CATALOG%.]sys.objects tb
join [%CATALOG%.]sys.triggers tr on (tr.parent_id = tb.object_id)
join [%CATALOG%.]sys.trigger_events te on (te.object_id = tr.object_id)
left outer join [%CATALOG%.]sys.assembly_modules s on (s.object_id = tr.object_id and tr.type = 'TA')
left outer join [%CATALOG%.]sys.assemblies a on (a.assembly_id = s.assembly_id and tr.type = 'TA')
where 1=1
[ and schema_name(tb.schema_id) =%.q:SCHEMA%]
[ and tb.name = %.q:TABLE%]
order by
1, 2, 3, 4
使用方法看这里:
http://www.cnblogs.com/downmoon/archive/2011/03/04/1971250.html
无法列出触发器。
[mircrosoft] [SQL Server的本机客户端10.0][SQL Server中]对象名'sys.sysuserperms'无效,的SQLSTATE= S0002
无法列出触发器。
[mircrosoft] [SQL Server的本机客户端10.0][SQL Server中]无法预定义语句的SQLSTATE=37000