本文介绍了'Microsoft.ACE.OLEDB.12.0' 64x Sql Server 和 86x Office?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:

OLE DB 提供程序Microsoft.ACE.OLEDB.12.0"不能用于分布式查询,因为该提供程序配置为在单线程单元模式下运行.

我看到的答案是 64 位 Sql Server 和 32 位 Office 之间的冲突.有没有办法将 Excel 上的 openrowset 运行到 Sql Server 中?

插入 dbo.FiscalCalendar选择 * 从openrowset('Microsoft.ACE.OLEDB.12.0','Excel 12.0 Xml;Database=C:UsersunameDesktopfy11.xlsx;','从 [Sheet1] 中选择 *')
解决方案

看起来微软还没有想出解决方案.查看 Microsoft 产品反馈表

他们有一些解决方法,例如使用 SSIS

The error:

And the answers I'm seeing is a conflict between 64 bit Sql Server and 32 bit Office. Is there a way to run an openrowset on Excel into Sql Server?

insert into dbo.FiscalCalendar
select * from
openrowset('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0 Xml;Database=C:UsersunameDesktopfy11.xlsx;',
'Select * from [Sheet1]')
解决方案

Looks like Microsoft hasn't come up with a solution on this yet.check Microsoft feedback form of products

They have some workarounds like using SSIS

这篇关于'Microsoft.ACE.OLEDB.12.0' 64x Sql Server 和 86x Office?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 03:54