Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi there I have a table which I would like to create an Excel file from. My query is as follows:

insert into OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;Database=D:\testing.xlsx;',
'SELECT * FROM [Sheet1$]')
select * from PAYHISTTEMP

My error is:
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been registered.

What I have tried:

insert into OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;Database=D:\testing.xlsx;',
'SELECT * FROM [Sheet1$]')
select * from PAYHISTTEMP

My error is:
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been registered.
Posted
Updated 11-Jul-17 0:24am
Comments
F-ES Sitecore 11-Jul-17 5:33am    
Have you googled the error message and tried some of the suggestions?
Deonger 11-Jul-17 6:09am    
Hi F-ES Sitecore, yes and they mention that my office needs to be updated to 64bit.
I have uninstalled office 32bit and reinstalled 64bit. I have also confirmed that SQL is a 64bit version.

I am running Office 365 64bit 2016

Microsoft SQL Server 2008 R2 (RTM) - 10.50.1617.0 (X64) Apr 22 2011 19:23:43 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.1 <x64> (Build 7601: Service Pack 1) (Hypervisor)
Richard MacCutchan 11-Jul-17 6:28am    
Have you installed the ACE driver?
RedDk 12-Jul-17 11:17am    
You'll need to register the .dll with the SYSWOW64 version of regserver ... if my memory serves me.

1 solution

I assume you have already installed appropriate drivers on your machine. Take look at the below article, even though the article talks about importing data this would help you in finding relative information to your issue.

SQL SERVER - FIX - Export Error - 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine - SQL Authority with Pinal Dave
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900