SQL SERVER导入EXCEL文件:无法创建链接服务器 "(null)" 的 OLE DB 访问接口 "Microsoft.Ace.OLEDB.12.0" 的实例。
2024-08-25 07:44:23
【方法一】
--开启导入功能
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$]
最新文章
- ASP.NET MVC5+EF6+EasyUI 后台管理系统(18)-权限管理系统-表数据
- 读书笔记--SQL必知必会--建立练习环境
- [bzoj2732][HNOI2012]射箭
- 微信公众平台开发——微信授权登录(OAuth2.0)
- springMVC的注解@RequestParam与@PathVariable的区别
- JavaScript格式化日期
- Error Dropping Database (Can't rmdir '.test\', errno: 17)
- openGL 提升渲染性能 之 顶点数组 VBO IBO VAO
- C++红旗之更短形式:500多字符且无法遵守原题规则
- 用Spring3编写第一个HelloWorld项目
- favicon.ico显示,favicon显示,favicon图标显示
- HAProxy 7层 负载均衡
- Spring整合Redis(spring-data-redis)
- pytest十三:配置文件 pytest.ini
- 题解——CodeForces 438D The Child and Sequence
- CSS Pseudo-classes
- function [eigf,eigv,dof]=laplaceeig(node,elem,problem)
- 正则表达式入门之学习路线&;七个问题
- bootStrap下拉菜单 点击下拉列表某个元素,列表不隐藏
- URAL题解二
热门文章
- JVM相关面试
- 【概率论】4-2:期望的性质(Properties of Expectation)
- ERROR 1010 (HY000): Error dropping database (can't rmdir './zabbix/', errno: 17)
- vue中mixin的理解与用法
- classpath详解
- java试题复盘——9月26日
- Spring Cloud Config(二):基于Git搭建配置中心
- LinkedBlockingQueue和ArrayBlockingQueue的异同
- Linux 时间同步 Chrony
- word里快捷输入分割线