'Microsoft.ACE.OLEDB.12.0'64x Sql Server和86x Office?

Chr*_*yes 4 oledb 64-bit 32-bit openrowset

错误:

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]')
Run Code Online (Sandbox Code Playgroud)

use*_*375 8

...关键是使用/ passive标志安装64位Access引擎:

c:> AccessDatabaseEngine_64/passive

  • 在安装Office 32位时遇到安装64位驱动程序的问题,我不知道被动标志会做什么.没有被动标志,它无法安装. (2认同)