1、
'SQL Server 阻止了對組件 'Ad Hoc Distributed Queries' 的 STATEMENT 'OpenRowset/OpenDatasource' 的訪問,因為此組件已作為此服務器安全配置的一部分而被關閉。
系統管理員可以通過使用 sp_configure 啟用 'Ad Hoc Distributed Queries'。有關啟用 'Ad Hoc Distributed Queries' 的詳細信息,請參閱 SQL Server 聯機叢書中的 "外圍應用配置器"。'.
解決:
1.開啟Ad Hoc Distributed Queries組件,在sql查詢編輯器中執行如下語句: exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure 2.關閉Ad Hoc Distributed Queries組件,在sql查詢編輯器中執行如下語句: exec sp_configure 'Ad Hoc Distributed Queries',0 reconfigure exec sp_configure 'show advanced options',0 reconfigure
2、
'鏈接服務器"(null)"的 OLE DB 訪問接口 "Microsoft.Jet.OLEDB.4.0" 返回了消息 "未指定的錯誤"。'.
再次運行,就可以了。
參考:
https://www.cnblogs.com/BigBigLiang/p/4482255.html
http://www.htmer.com/article/922.htm