I just want to check one thing out: You have installed ACE on the same machine that SQL Server is running on, haven't you?
I mean, if SQL Server runs on another machine, and you install ACE on your desktop, it is not going to work out.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Trying to convert Excel Import actions in a C# program using DataTables, to using T-SQL so all processing is on the server side.
Setup:
Query:
SELECT * INTO Data_dq
FROM OPENROWSET('Microsoft.ACE.OLEDB.16.0',
'Excel 12.0; Database=\\Server1\ExcelFileToImport.xlsx', [Sheet1$]);
GO
I have tried both OLEDB.16.0 & OLEDB.12.0 but can't get past these errors.
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.16.0" has not been registered.
Msg 7403, Level 16, State 1, Line 6
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been registered.
Engine16.0 is installed and 12.0 cannot be installed concurrently. The attempt to do so throws and installation error.
There is a lot of chatter on the internet for this error but it always comes down to installing the 12.0. This is not an option so am I out of luck?
I also found this and applied:
sp_configure 'show advanced options', 1;
RECONFIGURE;
GO
sp_configure 'Ad Hoc Distributed Queries', 1;
RECONFIGURE;
GO
Regards,
Lance
I just want to check one thing out: You have installed ACE on the same machine that SQL Server is running on, haven't you?
I mean, if SQL Server runs on another machine, and you install ACE on your desktop, it is not going to work out.
Hi @Lance James
Please try the following solutions from this article:
If the operating system is 64-bit, download "Microsoft Access Database Engine 2010 Redistributable" 64-bit and 32-bit from here and install them both.
If the operating system is 32-bit, download "Microsoft Access Database Engine 2010 Redistributable" 32-bit from here.(Note:Uninstall 64 bit version if previously installed.)
Hope this helps.
Best regards,
LiHong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Really great question.
I am dealing with Ace on the desktop not the actual server box. Monday, I will install the providers on the SQL server box and give report.
Thanks,
Lance