7

I have Windows 10 pro x64, Excel 2016 32 bit and Sql server 2017. I want to import excel file to sql server, I need to use 32-bit wizard because Microsoft Excel is not shown in 64-bit version, but I face this error: The 'Microsoft.ACE.OLEDB.16.0' provider is not registered on the local machine. (System.Data)

d219
  • 2,707
  • 5
  • 31
  • 36
stella
  • 71
  • 1
  • 1
  • 3

7 Answers7

9

If you are having problems installing the engine because components are already installed, do this (from Microsoft):

If Office 365 is already installed, side by side detection will prevent the installation from proceeding. Instead perform a /quiet install of these components from command line. To do so, download the AccessDatabaeEngine_x64.exe to your PC, open an administrative command prompt, and provide the installation path and switch Ex: C:\Files\AccessDatabaseEngine_x64.exe /quiet

CesarL
  • 91
  • 1
  • 1
  • Although my situation was reversed, this worked for me (I had the 64 bit version but SSMS import wizard looks for the 32 bit version). Before trying a side-by-side, I looked for the source. Here's what I found: https://support.microsoft.com/en-us/help/2874601/can-not-use-access-odbc-or-oledb-provider-outside-office-c2r-apps – puddleglum Apr 22 '19 at 22:05
  • This is the solution to this problem – DJ. Dec 12 '19 at 15:20
7

I had success doing the following (I use Excel 2016 and SSMS 2017) From Excel File -> Export -> Change File Type -> Excel 97- 2003 (*.xls)

Karen Young
  • 71
  • 1
  • 1
7

If you have OS(64bit) and SSMS(64bit) and already install the AccessDatabaseEngine(64bit) and you still received an error, try this following solutions:

1: direct opening the sql server import and export wizard.

if you able to connect using direct sql server import and export wizard, then importing from SSMS is the issue, it's like activating 32bit if you import data from SSMS.

Instead of installing AccessDatabaseEngine(64bit) , try to use the AccessDatabaseEngine(32bit) , upon installation, windows will stop you for continuing the installation if you already have another app installed , if so , then use the following steps. This is from the MICROSOFT. The Quiet Installation.

If Office 365 is already installed, side by side detection will prevent the installation from proceeding. Instead perform a /quiet install of these components from command line. To do so, download the desired AccessDatabaseEngine.exe or AccessDatabaeEngine_x64.exe to your PC, open an administrative command prompt, and provide the installation path and switch Ex: C:\Files\AccessDatabaseEngine.exe /quiet

or check in the Addition Information content from the link below,

https://www.microsoft.com/en-us/download/details.aspx?id=54920

jpcarts23
  • 468
  • 9
  • 16
4

Use this link to download the 64 bit version of the Microsoft Access Database Engine 2016 Redistributable:

https://www.microsoft.com/en-us/download/details.aspx?id=54920

Once installed you can open the import export wizard 64 bit and you will have a data source option for excel.

Matt
  • 500
  • 7
  • 18
1

This is a workaround solution. Ultimately, converting the Excel document to a CSV and using the Tasks/Import Data/Flat File Source option imported my data (although, I was not able to successfully map my datatypes in the import, which I can fix with CAST() later). On upload, change File type to CSV from TXT.

Flat File Source

I have Office 365. I used a CSV and gave up on XLSX because:

When I ran the 32 bit version of the AccessDatabaseEngine.exe, I received this error: 32 not compatible with 64

When I ran the 64 bit version of AccessDatabaseEnginex64.exe, I received this error: 64 not compatible with 32

JJ846
  • 41
  • 1
  • 6
0

If you have the Microsoft Access Database Engine and still are facing the same issue make sure that you are accessing the Microsoft SQL Server Management Studio as Administrator.

B. Irena
  • 169
  • 7
0

Instead of using the import/export tasks provided under the database, I utilized "SQL Server 2016 Import and Export Data (64-bit)" service comes with MS SQL Server 2016 installation as per suggested here. In windows 10 you can find it under SQL Server 2016 app. In your case, find SQL Server 2016 Import and Export Data (32-bit) service available in same location.

Rola
  • 1,598
  • 13
  • 12