I am currently using
- Office 2016 32-bit
- SQL Server 2016
Steps taken:
- Installed
Microsoft.ACE.OLEDB.12.0
provided in a post Ran command
SP_CONFIGURE 'show advanced options', 1; RECONFIGURE; GO SP_CONFIGURE 'Ad Hoc Distributed Queries', 1; RECONFIGURE; GO
Now I run this command:
SELECT * INTO #InertTable FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'Excel 12.0;Database=C:\Users\Samra\Documents\..\Supervisor Grandfathering.xls', 'SELECT * FROM [sheet1$]')
But I get an error
The 32-bit OLE DB provider "Microsoft.ACE.OLEDB.12.0" cannot be loaded in-process on a 64-bit SQL Server.
I also tried:
- right-clicking database -> import
- Chose Microsoft Excel from Datasource
- specified file name Excel
- version -> Microsoft 2016
Now it says Microsoft.ACE.OLEDB.16.0
provider is not registered on local machine
I also went to https://www.microsoft.com/en-us/download/confirmation.aspx?id=54920 and downloaded it, and now when I run 64-bit version to install it says
You cannot install the 64-bit version of Microsoft Access Database Engine 2016 because you currently have 32-bit Office products installed. If you want to install 64-bit Microsoft Access Database Engine 2016, you will first need to remove the 32-bit installation of Office products....
For which i have to ask my admin and set it up later. Isn't there an easy way around all this? I just need to import data from an excel into a table