I’m attempting to query and Excel spread sheet on a network share, using the openrowset function with no success. I get the following error:
SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;DATABASE=\\server\Xdrive:\Spreadsheet.xls',
'Select * from [Sheet1$]')
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error. The provider did not give any information about the error.
OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0' IDBInitialize::Initialize returned 0x80004005: The provider did not give any information about the error.].
I have searched the site and have tried different syntax with no success. I have read that the account may not have access to the network share. What account does this process run under?