您的位置:首页 > 数据库

SQL Server 阻止了对组件 'Ole Automation Procedures' 的 过程'sys.sp_OACreate' 的访问

2010-12-13 17:30 447 查看
SQL Server 阻止了对组件 'Ole Automation Procedures' 的 过程'sys.sp_OACreate' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 'Ole Automation Procedures'。有关启用 'Ole Automation Procedures' 的详细信息,请参阅 SQL Server 联机丛书中的 "外围应用配置器"。 语句已终止。

SQL Server blocked access to procedure 'sys.sp_OACreate' of component 'Ole Automation Procedures'
because this component is turned off as part of the security configuration for this server.
A system administrator can enable the use of 'Ole Automation Procedures' by using sp_configure.
For more information about enabling 'Ole Automation Procedures',
see "Surface Area Configuration" in SQL Server Books Online.

Ole Automation Procedures 选项

使用 Ole Automation Procedures 选项可指定是否可以在 Transact-SQL 批处理中实例化 OLE Automation 对象。也可以使用外围应用配置器工具来配置此选项。有关详细信息,请参阅外围应用配置器。

可以将 Ole Automation Procedures 选项设置为以下值。

0
禁用 OLE Automation Procedures。SQL Server 2005 新实例的默认值。

1
启用 OLE Automation Procedures。

当启用 OLE Automation Procedures 时,对 sp_OACreate 的调用将会启动 OLE 共享执行环境。

可以使用 sp_configure 系统存储过程来查看和更改 Ole Automation Procedures 选项的当前值。

以下示例显示了如何查看 OLE Automation Procedures 的当前设置。

以下示例显示了如何启用 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐