使用 Ole Automation Procedures
此选项指定是否可以在 Transact-SQL 批处理中实例化 OLE 自动化对象。 还可以使用基于策略的管理或者 sp_configure 存储过程来配置这一选项。 有关详细信息,请参阅 Surface Area Configuration。
该 Ole Automation Procedures
选项可以设置为以下值。
0
禁用 OLE Automation Procedures。 SQL Server新实例的默认值。
1
启用 OLE Automation Procedures。
当启用 OLE Automation Procedures 时,对 sp_OACreate 的调用将会启动 OLE 共享执行环境。
可以使用sp_configure系统存储过程查看和更改选项的Ole Automation Procedures
当前值。
例子
以下示例显示了如何查看 OLE Automation Procedures 的当前设置。
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
另请参阅
sp_configure(Transact-SQL)
RECONFIGURE (Transact-SQL)
外围应用配置器
服务器配置选项 (SQL Server)