问题描述
我无法从Excel文件读取数据或无法写入文件
我的操作系统是64位
Office 2007
Sql Server 2008
我的查询是
SELECT * FROM OPENROWSET('Microsoft .ACE.OLEDB.12.0','Excel 8.0;数据库= D:\新文件夹\ book2.xlsx','SELECT * FROM [sheet1 $]')
我得到错误像
OLE DB提供程序'Microsoft.ACE.OLEDB.12.0'不能用于分布式查询,因为提供程序配置为在单个运行 - 螺纹公寓模式。
如果我运行此查询我得到了上述错误
------------ -------------------------------------
第二次查询
SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.12.0','Excel 12.0;数据库= D:\新文件夹\ book2.xlsx','select * from [sheet1 $]')
我得到错误像
OLE DB提供程序Microsoft.Jet.OLEDB.12.0尚未注册。
如果我运行此查询我遇到了上述错误
请帮忙,我已经花了3天时间......
I cant Read data from Excel file or cant to Write in file
My OS system is 64bit
Office 2007
Sql Server 2008
my Query is
SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel 8.0;Database=D:\New folder\book2.xlsx','SELECT * FROM [sheet1$]')
I getting Error like
OLE DB provider 'Microsoft.ACE.OLEDB.12.0' cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode.
if i run this query i got above error
-------------------------------------------------
second query
SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.12.0','Excel 12.0;Database=D:\New folder\book2.xlsx','select * from [sheet1$]')
I getting Error like
The OLE DB provider "Microsoft.Jet.OLEDB.12.0" has not been registered.
if i run this query i got above error
Please help, I Already 3 days spent behind it.....
这篇关于MSExcel数据未读取或导出到文件Sql server 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!