qq_42120274 2020-08-26 10:20 采纳率: 0%
浏览 319
已采纳

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

原文:
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', search for 'Ole Automation Procedures' in SQL Server Books Online.
翻译:
SQL Server阻止访问过程'系统创建因为此组件作为此服务器安全配置的一部分被关闭。系统管理员可以使用sp_configure启用“Ole自动化过程”的使用。有关启用“Ole自动化过程”的详细信息,请在SQL Server联机丛书中搜索“Ole自动化过程”。
exec sp_configure 'show advanced options', 1;

GO

RECONFIGURE WITH OVERRIDE;

GO

exec sp_configure 'Ole Automation Procedures', 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更改

  • 写回答

2条回答 默认 最新

  • jingluan666 2020-08-26 10:33
    关注
    sp_configure 'show advanced options', 1 
    
    GO 
    RECONFIGURE; 
    GO 
    sp_configure 'Ole Automation Procedures', 1 
    GO 
    RECONFIGURE; 
    GO 
    sp_configure 'show advanced options', 1 
    GO 
    RECONFIGURE;
    

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

    如果还不行,使用下面语句查看数据库版本信息,是不是express版本

    select @@version
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测