SQL Server 阻止了对组件 'Ole Automation Procedures' 的 过程 'sys.sp_OACreate' 的访问
2024-10-12 06:56:01
sqlserver2008导入excel到数据库的时候报错:
SQL Server 阻止了对组件 'Ole Automation Procedures' 的 过程 'sys.sp_OACreate' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 'Ole Automation Procedures'。有关启用 'Ole Automation Procedures' 的详细信息,请参阅 SQL Server 联机丛书中的 "外围应用配置器"。
解决方法:sql执行下列语句
-- 如果我们在执行以上sql的时候显示"配置选项 'Ole Automation Procedures' 不存在,
--也可能是高级选项"错误,是因为系统隐藏掉了show advanced options的配置项,
--我们可以先执行以下sql后再重新设置:
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
-- OLE自动化功能:1为开启,0为关闭
sp_configure 'Ole Automation Procedures', 1;
GO
RECONFIGURE;
GO
EXEC sp_configure 'Ole Automation Procedures';
GO
最新文章
- Scanner类
- python之路十六
- Web开发中管理ipad屏幕的方向变化
- hession
- hibernate 注解 主键生成策略
- C++创建对象的两种方式
- SQL百分比
- 通过ASP禁止指定IP和只允许指定IP访问网站的代码
- 双十一运维怎么过,OneAPM 帮你救火,轻松运维
- Python 基础【第九篇】运算
- light oj 1354 - IP Checking
- MSSQL数库备份与还原脚本(多个库时很方便)
- maven jetty struts异常 There is no Action mapped for namespace [/] and action name [] associated with context path
- AndFix
- js对象系列【一】深层理解对象与原型
- html 的 crossorigin 属性
- ERP系统
- 【springBoot】之概述
- SIM900A模块HTTP相关调试笔记
- mvc页面间的传值
热门文章
- 网络编程(二)NSURLSessionConfiguration
- PLSQL操作
- SSH框架应用中常用Jar包用途介绍
- poj2286The Rotation Game(迭代加深dfs)
- linux,Centos,bash: service: command not found
- BZOJ_1612_[Usaco2008_Jan]_Cow_Contest_奶牛的比赛_(dfs)
- Bootstrap中的less基础
- htmlparser源码简单分析
- curl与wget区别
- FlowLayoutPanel autowrapping doesn't work with autosize