【发布时间】:2010-12-15 15:29:40
【问题描述】:
我在数据库上有一个 DDL 触发器。我想通过证书为其添加签名。我有完整的 sa 权限,但是当我尝试运行语句时
ADD SIGNATURE TO OBJECT::[objects_monitoring]
BY CERTIFICATE [mail_certificate]
WITH PASSWORD = 'password1';
GO
我收到以下错误
Msg 15151, Level 16, State 1, Line 2
Cannot alter the object 'objects_monitoring', because it does not exist or you do not have permission.
如何将签名添加到此 DDL 触发器?
【问题讨论】:
-
我怀疑您需要使用与
OBJECT不同的 module_class,但是关于支持哪些其他 module_class 值的文档并不多。