[英]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驱动程序时,我从安装程序中收到以下错误:
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: 题:
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安装兼容?
(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.