i am trying to import data from an EXCEL file into SQL SERVER. When i run this query
SELECT * INTO EXCEL_IMPORT
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel 12.0; Database=C:\Users\af\Desktop\Reports\Jan_2016_Ships.xlsx; HDR=YES; IMEX=1',
'SELECT * FROM [Sheet1$]');
I get this error
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been registered.
So i needed to install this driver but after doing some searches i found this :
Install Microsoft.ACE.OLEDB.12.0 driver
To import Excel 2007-2016 files to SQL Server Microsoft.ACE.OLEDB.12.0 driver should be installed.
To download the driver use the following link:
Microsoft Access Database Engine 2010 Redistributable
Don't worry about "Access" in the name.
Warning! x64 driver can not be installed if Microsoft Office 2007-2016 x86 is already installed!
So there is no way to import Excel data to SQL Server x64 using OPENROWSET/OPENDATASOURCE functions on a machine with Microsoft Office x86!
So i couldn't install this driver because i have SQL SERVER x64 and Microsoft Office x86. I don't want to use the simple import wizard because i have many tables and i need to check the data type of the columns... it will be time consuming in my case.
I believe there should be a solution to run my query on SQL SERVER x64 and Microsoft Office x86.
Any suggestions please ? Thank you very much