简体   繁体   中英

The OLE DB provider “Microsoft.ACE.OLEDB.14.0” has not been registered

This is my sql query

SELECT * 
FROM   OPENROWSET('Microsoft.ACE.OLEDB.14.0',
'Excel 13.0 Xml;HDR=YES;Database=C:\xxxx\sample.xlsx',
 'SELECT * FROM [Sheet1$]');

When I execute this query, I get this error :

(The OLE DB provider "Microsoft.ACE.OLEDB.14.0" has not been registered.)

Download and install Microsoft Access Database Engine 2010 Redistributable or MS Office 2010.
Make sure you select correct platform (x86 vs x64).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM