【方法一】

--开启导入功能
    exec sp_configure 'show advanced options',1
    reconfigure
    exec sp_configure 'Ad Hoc Distributed Queries',1
    reconfigure
    --允许在进程中使用ACE.OLEDB.12
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1
    --允许动态参数
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1

【方法二】

【方法三】

没有找到EXCEL文件,也会提示这个错误

【导出步骤和结果】

select * from OpenDataSource('Microsoft.ACE.OLEDB.12.0', 'Excel 12.0;HDR=Yes;IMEX=1;Database=e:\Book1.xlsx')...[Sheet1$]

最新文章

  1. ASP.NET MVC5+EF6+EasyUI 后台管理系统(18)-权限管理系统-表数据
  2. 读书笔记--SQL必知必会--建立练习环境
  3. [bzoj2732][HNOI2012]射箭
  4. 微信公众平台开发——微信授权登录(OAuth2.0)
  5. springMVC的注解@RequestParam与@PathVariable的区别
  6. JavaScript格式化日期
  7. Error Dropping Database (Can't rmdir '.test\', errno: 17)
  8. openGL 提升渲染性能 之 顶点数组 VBO IBO VAO
  9. C++红旗之更短形式:500多字符且无法遵守原题规则
  10. 用Spring3编写第一个HelloWorld项目
  11. favicon.ico显示,favicon显示,favicon图标显示
  12. HAProxy 7层 负载均衡
  13. Spring整合Redis(spring-data-redis)
  14. pytest十三:配置文件 pytest.ini
  15. 题解——CodeForces 438D The Child and Sequence
  16. CSS Pseudo-classes
  17. function [eigf,eigv,dof]=laplaceeig(node,elem,problem)
  18. 正则表达式入门之学习路线&七个问题
  19. bootStrap下拉菜单 点击下拉列表某个元素,列表不隐藏
  20. URAL题解二

热门文章

  1. JVM相关面试
  2. 【概率论】4-2:期望的性质(Properties of Expectation)
  3. ERROR 1010 (HY000): Error dropping database (can't rmdir './zabbix/', errno: 17)
  4. vue中mixin的理解与用法
  5. classpath详解
  6. java试题复盘——9月26日
  7. Spring Cloud Config(二):基于Git搭建配置中心
  8. LinkedBlockingQueue和ArrayBlockingQueue的异同
  9. Linux 时间同步 Chrony
  10. word里快捷输入分割线