OPENROWSET read excel
由于64位系统已经不支持 oledb 4.0访问 xls
1. 未在本地计算机上注册“microsoft.ACE.oledb.12.0”提供程序
2.SQL Server blocked access to STATEMENT 'OpenRowset/OpenDatasource' of component 'Ad Hoc Distributed Queries' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'Ad Hoc Distributed Queries' by using sp_configure. For more information about enabling 'Ad Hoc Distributed Queries', see "Surface Area Configuration" in SQL Server Books Online.
--打开 hoc distributed
exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
--关闭 ad hc distributed
exec sp_configure 'Ad Hoc Distributed Queries',0
reconfigure
exec sp_configure 'show advanced options',0
reconfigure
最新文章
- java中产生对象的两种方式
- 在 VirtualBox 中 CentOS 网络设置
- OC面向对象封装
- 4K Block Size的Device和 Aligned IO
- spring IOC容器实例化Bean的方式与RequestContextListener应用
- [039] 微信公众帐号开发教程第15篇-自定义菜单的view类型(访问网页)
- [Redux] Store Methods: getState(), dispatch(), and subscribe()
- 秒味课堂Angular js笔记------过滤器
- EffectiveC#7--选择恒定的原子值类型数据
- IOS简单画板实现
- Python统计列表中的重复项出现的次数的方法
- KVM之七:KVM克隆
- JSP页面分页显示数据
- 各种形式的熵函数,KL距离
- 【Eclipse】eclipse自动提示+自动补全
- luogu1525 [NOIp2011]关押罪犯 (并查集)
- Mysql 区分大小写进行查询
- c++基本
- POJ 2516 Minimum Cost(最小费用流)
- Sandbox简介和路径获取