【发布时间】:2011-02-23 08:38:53
【问题描述】:
错误:
OLE DB 提供程序“Microsoft.ACE.OLEDB.12.0”不能用于分布式查询,因为该提供程序配置为在单线程单元模式下运行。
我看到的答案是 64 位 Sql Server 和 32 位 Office 之间的冲突。有没有办法将 Excel 上的 openrowset 运行到 Sql Server 中?
insert into dbo.FiscalCalendar
select * from
openrowset('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0 Xml;Database=C:\Users\uname\Desktop\fy11.xlsx;',
'Select * from [Sheet1]')
【问题讨论】:
标签: 64-bit oledb 32-bit openrowset