SQL Server: Cannot initialize the data source object of OLE DB provider “Microsoft.ACE.OLEDB.12.0” for linked server “(null)”

后端 未结 4 1815
醉话见心
醉话见心 2021-01-02 01:18

I am trying to run the following query:

SELECT * FROM OPENROWSET(\'Microsoft.ACE.OLEDB.12.0\',
\'Excel 12.0;Database=C:\\Somefile.xlsx\',
\'SELECT * FROM [Sh         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-02 02:10

    We had this failure and nothing resolved until we noticed our service account was configured to use a domain account, not the default service account. Another server using Local System worked running the exact same job with the same impersonation settings and executing user.

    We investigated and confirmed, adding the Act as part of the operating system right for the SQL Agent service account in the Local Security Policy under the Security Settings | Local Policies | User Rights Assignments resolved the issue.

提交回复
热议问题