I was trying to run this query
SELECt * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel 12.0;Database=C:\Users\File.xlsx', 'SELECT * FROM [Sheet1$]');
I got this Error:
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been registered.
Computer OS: win7 64 bit, excel:32bit
I have tried the solutions in these articles and doesn't work:
http://social.msdn.microsoft.com/Forums/en/transactsql/thread/108a4588-cca9-458b-b5e6-41d957f25fdd
I also have installed these:
http://www.microsoft.com/downloads/details.aspx?FamilyID=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en
and
http://www.microsoft.com/en-us/download/details.aspx?id=13255
However, when I use ssms to do importing, I was successfully imported data.
please help.