Excel into SQL Server with Microsoft.ACE.OLEDB.12.0

前端 未结 4 567
-上瘾入骨i
-上瘾入骨i 2020-12-10 08:06

I\'m getting the following error when trying to open an Excel file in SQL Server 2008 r2 64-bit:

Msg 7399, Level 16, State 1, Line 1
The OLE DB provider \"Mi         


        
4条回答
  •  醉酒成梦
    2020-12-10 09:09

    have you tried (as a test) copying the Excel file onto the SQL Server C:\ drive and executing the query against that path?

    what happens when you go onto the server and open this path in Explorer/run dialog: \filepath\filename.xlsx?

    Are you able to execute this query: exec master..xp_cmdshell 'dir '\filepath\filename.xlsx'?

    This will help you determine if it's a network rights issue, or whether the account has the permissions to use distributed queries.

    My hunch is that it's definitely a rights/permission issue, as the DBA can run it.

提交回复
热议问题