OPENROWSET read excel
Posted 渴望成功
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
以上是关于OPENROWSET read excel的主要内容,如果未能解决你的问题,请参考以下文章