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

最新文章

  1. Scanner类
  2. python之路十六
  3. Web开发中管理ipad屏幕的方向变化
  4. hession
  5. hibernate 注解 主键生成策略
  6. C++创建对象的两种方式
  7. SQL百分比
  8. 通过ASP禁止指定IP和只允许指定IP访问网站的代码
  9. 双十一运维怎么过,OneAPM 帮你救火,轻松运维
  10. Python 基础【第九篇】运算
  11. light oj 1354 - IP Checking
  12. MSSQL数库备份与还原脚本(多个库时很方便)
  13. maven jetty struts异常 There is no Action mapped for namespace [/] and action name [] associated with context path
  14. AndFix
  15. js对象系列【一】深层理解对象与原型
  16. html 的 crossorigin 属性
  17. ERP系统
  18. 【springBoot】之概述
  19. SIM900A模块HTTP相关调试笔记
  20. mvc页面间的传值

热门文章

  1. 网络编程(二)NSURLSessionConfiguration
  2. PLSQL操作
  3. SSH框架应用中常用Jar包用途介绍
  4. poj2286The Rotation Game(迭代加深dfs)
  5. linux,Centos,bash: service: command not found
  6. BZOJ_1612_[Usaco2008_Jan]_Cow_Contest_奶牛的比赛_(dfs)
  7. Bootstrap中的less基础
  8. htmlparser源码简单分析
  9. curl与wget区别
  10. FlowLayoutPanel autowrapping doesn't work with autosize