日期        2023/4/15 18:00:00
 日志        作业历史记录 (AIPACS)
步骤 ID        1
 服务器        GOOGLE
 作业名称        AIPACS
 步骤名称        RUNWS
 持续时间        00:00:00
 SQL 严重性        16
 SQL 消息 ID        15281
 已通过电子邮件通知的操作员    
 已通过网络发送通知的操作员    
 已通过寻呼通知的操作员    
 重试次数        0
消息
 已以用户 NT SERVICE\SQLSERVERAGENT 的身份执行。 SQL Server 阻止了对组件“Ole Automation Procedures”的 过程“sys.sp_OACreate”的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用“Ole Automation Procedures”。有关启用“Ole Automation Procedures”的详细信息,请搜索 SQL Server 联机丛书中的“Ole Automation Procedures”。 [SQLSTATE 42000] (错误 15281)  SQL Server 阻止了对组件“Ole Automation Procedures”的 过程“sys.sp_OAMethod”的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用“Ole Automation Procedures”。有关启用“Ole Automation Procedures”的详细信息,请搜索 SQL Server 联机丛书中的“Ole Automation Procedures”。 [SQLSTATE 42000] (错误 15281)  SQL Server 阻止了对组件“Ole Automation Procedures”的 过程“sys.sp_OAMethod”的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用“Ole Automation Procedures”。有关启用“Ole Automation Procedures”的详细信息,请搜索 SQL Server 联机丛书中的“Ole Automation Procedures”。 [SQLSTATE 42000] (错误 15281)  SQL Server 阻止了对组件“Ole Automation Procedures”的 过程“sys.sp_OAGetProperty”的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用“Ole Automation Procedures”。有关启用“Ole Automation Procedures”的详细信息,请搜索 SQL Server 联机丛书中的“Ole Automation Procedures”。 [SQLSTATE 42000] (错误 15281)  SQL Server 阻止了对组件“Ole Automation Procedures”的 过程“sys.sp_OADestroy”的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用“Ole Automation Procedures”。有关启用“Ole Automation Procedures”的详细信息,请搜索 SQL Server 联机丛书中的“Ole Automation Procedures”。 [SQLSTATE 42000] (错误 15281).  该步骤失败。
 
--开启 Ole Automation Procedures
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Ole Automation Procedures', 1;
GO
RECONFIGURE;
GO
EXEC sp_configure 'Ole Automation Procedures';
GO
--关闭 Ole Automation Procedures
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Ole Automation Procedures', 1;
GO
RECONFIGURE;
GO
EXEC sp_configure 'Ole Automation Procedures';
GO
--关闭高级选项
sp_configure 'show advanced options', 0;
GO
RECONFIGURE;
GO 
                





![[测试新人必看] 测试报告如何编写? 掌握这五十个测试报告模板](https://img-blog.csdnimg.cn/img_convert/0a7b3b17f82ee3d45c85b2f45f03a39b.png)












