Cannot initialize the data source object of OLE DB provider “Microsoft.ACE.OLEDB.12.0” for linked server

后端 未结 2 1532
南方客
南方客 2021-01-25 21:36

I\'m trying to establish a linked server from SQL Server 2008 R2 to an Access database. The Access database is not password protected. As

相关标签:
2条回答
  • 2021-01-25 21:59
    USE [master]
    GO
    EXEC sp_configure 'show advanced options', 1
    RECONFIGURE
    GO
    EXEC sp_configure 'ad hoc distributed queries', 1
    RECONFIGURE
    GO
    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
    SELECT *
    FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','Name & Location of DB';;, [TableName])
    
    0 讨论(0)
  • 2021-01-25 22:08

    I fixed the problem by disabling UAC within the control panel. I am unsure what changes this made, but it might help others!

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