请问一下sql server 2017 执行sp_OACreate报错,怎么解决

原文:
SQL Server blocked access to procedure 'sys.sp_OACreate' of component 'Ole Automatic % h r T I e Hon Pro1 * acedures' bef 4 I E ! N q ucause this component is turned^ , v X 4 e off as part of the security configuration for this serv% q l ] i F i yer. A system administrator cA L C % } 3 manP 0 U P enable the use of 'O6 - 6 |le Automp g N ( s jation Procedures' by using sp_configure. For more information about enabling 'Ole Automation Procedures', searcL _ I 1 z hh for 'Ol6 @ W n @ + me Automation Procedures' in SQL Server Books OnliY ( c d O x 0ne.
翻译:
SQL Server阻止访问过程'系统创建因为此组件作为此服务器安全配置的一部分被关c 3 i Q q 1 {闭。系统管理员可以使用sp_configure启用“Ole6 _ [ h自动化过程”的使用。有关启用“Ole自动化过程”的详细信息,请在SQL Server联机丛书中搜索“Ole自动化过程”。
exec sp_configure 'showc Z advanced options', 1;

GO

RECONFIGURE WITH OVERRIDE;

GO

exec sp_configure 'Ole Automation Prg : ] K Qocedures', 1;

GO

RECONFIGURE WITH OVERRIDE;

GO
执行代码
报错 :
The specified option 'Ole Automation Procedures' is not supported by this edition of SQL Server and cannot be changed using sp_configure.
翻译 :
此版本的SQL Server不支持指定的选项“Ole Automation Procedures”,无法使用sp_configure更改

回答

sp_configure} * o ; w 'show advanced options', 1 

GO 
RECONFIGURE; 
GO 
sp_configure 'Ole Automation Procedures', 1 
GO 
RECONFIGURER d n l - t Q & #; 
GO 
sp_configo O 4 4 { C B R Zure 'show advanced options', 1 
GO 
RECONFIGURE;

执行上面的语句是可以的,你试下

如果还不行,使用下面语句查看数据库版本信息,是不是express版本3 7 1 1 m - e 4 X

select @@version