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.
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.
When attempting to install the 64 bit OLEDB driver I get the following error from the installer:
My attempt to pull in data through the existing 32-bit driver using SQL OPENROWSET queries:
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?
(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? (Want to make sure I'm not losing MS Office & my time).
Thanks all!