'Microsoft.ACE.OLEDB.12.0' 64x Sql Server 和 86x Office? [英] 'Microsoft.ACE.OLEDB.12.0' 64x Sql Server and 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:
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.
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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!