【问题标题】:how to add signature to a DDL trigger?如何将签名添加到 DDL 触发器?
【发布时间】: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 值的文档并不多。

标签: sql-server ddl-trigger


【解决方案1】:

根据this link,DDL 触发器无法签名。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-02
    • 1970-01-01
    • 1970-01-01
    • 2014-02-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-10
    相关资源
    最近更新 更多