简体   繁体   English

64位Windows 7计算机的Microsoft ODBC驱动程序的替代品(将Excel数据转换为SQL)

[英]Alternative to Microsoft ODBC Drivers for 64-bit Windows 7 machine (get Excel data to SQL)

The Problem: 问题:

I have been trying to get a simple app/stored procedure/sql query/anything to pull in data from excel spreadsheets to MS SQL Server 2012 on my 64-bit Windows 7 machine. 我一直在尝试获取一个简单的应用程序/存储过程/ sql查询/将数据从excel电子表格中提取到我的64位Windows 7计算机上的MS SQL Server 2012。

My IT department has installed Microsoft Office 2010, which is incompatible with the Microsoft Access OLEDB driver (called Microsoft.Ace.OLEDB.12.0), which I've installed independently. 我的IT部门已经安装了Microsoft Office 2010,它与我独立安装的Microsoft Access OLEDB驱动程序(称为Microsoft.Ace.OLEDB.12.0)不兼容。

When attempting to install the 64 bit OLEDB driver I get the following error from the installer: 尝试安装64位OLEDB驱动程序时,我从安装程序中收到以下错误:

IMG

My attempt to pull in data through the existing 32-bit driver using SQL OPENROWSET queries: 我尝试使用SQL OPENROWSET查询通过现有的32位驱动程序提取数据:

 SELECT * FROM OPENROWSET('Provider=Microsoft.ACE.OLEDB.12.0', 
   'Extended Properties=Excel 12.0;
   Data Source=c:\path\to\excel\spreadsheet.xlsx',
   [Sheet1$]);

or 要么

sp_configure 'Ad Hoc Distributed Queries',1
go
reconfigure with override
go SELECT * FROM OPENROWSET ('Microsoft.Ace.OLEDB.12.0','Excel 12.0; Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=c:\path\to\excel\spreadsheet.xlsx; Extended Properties=''EXCEL 12.0;HDR=NO;IMEX=1','SELECT * FROM [Sheet1$]') AS exl

result in the following error: 导致以下错误:

The 32-bit OLE DB provider "Microsoft.Ace.OLEDB.12.0" cannot be loaded in-process on a 64-bit SQL Server.

OR: 要么:

 The OLE DB provider "Provider=Microsoft.ACE.OLEDB.12.0" has not been registered.

QUESTION: 题:

  1. What other drivers out there exist (if any) for me to use in lieu of the Microsoft.Ace.OLEDB.12.0 driver that are also compatible with 32-bit Office install? 我还有哪些其他驱动程序(如果有)代替Microsoft.Ace.OLEDB.12.0驱动程序,它们也与32位Office安装兼容?

  2. (If there is no answer to no. 1) Can anyone tell me for sure whether uninstalling 32-bit office will allow me to install and use the 64 bit driver? (如果对第1条没有答案),谁能确定告诉我卸载32位office是否允许我安装和使用64位驱动程序? (Want to make sure I'm not losing MS Office & my time). (想要确保我不会失去MS Office和我的时间)。

Thanks all! 谢谢大家!

See if this helps you, about halfway down the page. 看看这是否对您有帮助,大约在页面的一半位置。

http://sqlwithmanoj.com/tag/microsoft-ace-oledb-12-0/ http://sqlwithmanoj.com/tag/microsoft-ace-oledb-12-0/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从64位SQL Server到Informix数据源的ODBC连接 - ODBC connection from 64-bit SQL Server to Informix data source 我在 SSIS 连接管理器下拉列表中看不到 ODBC 64 位驱动程序? - I am not able to see ODBC 64-bit drivers in SSIS connection manager drop down list? 从64位ODBC提供程序导入数据 - Import data from 64-bit ODBC provider 试图将数据从 Excel 加载到 SQL Server。 32 位 Excel 和 64 位 SQL Server 引发错误 - Trying to Load Data from Excel into SQL Server. 32-bit Excel and 64-bit SQL Server Throws Error 通过32位ODBC驱动程序将64位SQL Server链接到SyBase的服务器 - 64-bit SQL Server Linked server to SyBase via 32-bit ODBC driver 如何计划在64位Windows Server 2012上从dbf到SQL Server的数据插入 - How to schedule data insertion from dbf to SQL Server on 64-bit Windows Server 2012 尝试在 win 7 上安装 SQL Server 2012。它是 64 位机器。 我收到以下错误 - Trying to install SQL Server 2012 on win 7. Its a 64-bit machine. I get the following error 如何使用ODBC连接到我的64位SQL Server? - How do I connect to my 64-bit SQL Server with ODBC? 64位Microsoft SQL Server数据工具 - 64 bit Microsoft SQL Server Data Tools 2个具有相同名称的Windows Server与具有相同名称的SQL Server导致第三台计算机上的ODBC驱动程序混淆 - 2 Windows Servers with same names with SQL server with same name causing confusion in ODBC drivers on third machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM