The OLE DB provider “Microsoft.ACE.OLEDB.12.0” for linked server “(null)”

后端 未结 19 1717
灰色年华
灰色年华 2020-12-02 17:27

I\'m trying to run the following statement but am receiving the error messages just below. I have researched answers to no end and none have worked for me. I\'m running Of

相关标签:
19条回答
  • 2020-12-02 17:34

    http://www.aspsnippets.com/Articles/The-OLE-DB-provider-Microsoft.Ace.OLEDB.12.0-for-linked-server-null.aspx

    This solves the issue. For some reason SQL Server does not like the default MSSQLSERVER account. Switching it to a local user account resolves the issue.

    0 讨论(0)
  • 2020-12-02 17:35

    Make sure the Excel file isn't open.

    0 讨论(0)
  • 2020-12-02 17:37

    I'm running SQL Server 2014 64 bit on Windows 10. I tried everything, the thing that made it work was:

    EXEC sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 0
    

    I don't know why the AllowInProcess turned off makes it work but that was the key in my case. Thank you for the suggestion of turning all the options off on the linkserver.

    0 讨论(0)
  • 2020-12-02 17:37
    1. Close SQL Server Management Studio. Type Services.msc in the run command to open the services window.

    2. Search for SQL Server Service and right click it and select properties.

    3. In the Log On Tab, select system account/or select your domain ID and Account and password.

    4. Once it finds your login name press OK.

    5. Now type your login’s passwords in both the fields.

    6. Restart the services so that the new changes are applied as shown in figure below.

    7. Now start SQL Server Management Studio and try to run the query if still not working try a system restart.

    ... or execute the following query:

    USE [master] 
    GO 
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1 
    GO 
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1 
    GO 
    
    0 讨论(0)
  • 2020-12-02 17:37

    Removing Read-only CheckBox from C:\Users\SQL Service account name\AppData\Local\Temp worked for me.

    0 讨论(0)
  • 2020-12-02 17:38

    In my case this problem was occuring because i was accessing the file from shared folder by using computerName. OPENROWSET(''Microsoft.Jet.OLEDB.4.0'',''Excel 8.0;Database='\ntpc0100\MysharedFolder\KPI_tempData\VariablePayoutDetails.xls';IMEX=1;'','.....) Insted of using computerName ntpc0100(whatever your machine name) you should specify IPaddress of your machine. for example:- OPENROWSET(''Microsoft.Jet.OLEDB.4.0'',''Excel 8.0; Database='\193.34.23.200\MysharedFolder\KPI_tempData\KPIVariablePayoutDetails.xls'....);

    0 讨论(0)
提交回复
热议问题