啟用 'Ad Hoc Distributed Queries'
SQL Server 阻止了對元件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的通路,因為此元件已作為此伺服器安全配置的一部分而被關閉。系統管理者可以通過使用 sp_configure 啟用 'Ad Hoc Distributed Queries'。
EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE
GO
EXEC sp_configure 'Ad Hoc Distributed Queries', 1
GO
RECONFIGURE
GO
資料二:
在Sql Server2005導入資料的時候出現的了一個問題:
insert into (test)values(test);
結果提示:
SQL Server 阻止了對元件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的通路,因為此元件已作為此伺服器安全配置的一部分而被關閉。系統管理者可以通過使用 sp_configure 啟用 'Ad Hoc Distributed Queries'。有關啟用 'Ad Hoc Distributed Queries' 的詳細資訊,請參閱 SQL Server 聯機叢書中的 "外圍應用配置器".
查詢相關方法,找到解決辦法
啟用Ad Hoc Distributed Queries:
exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
使用完成後,關閉Ad Hoc Distributed Queries:
exec sp_configure 'Ad Hoc Distributed Queries',0
reconfigure
exec sp_configure 'show advanced options',0
reconfigure
<script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/buttonLite.js#style=-1&uuid=&pophcol=3&></script> <script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/bshareC0.js"></script> 閱讀(364) | 評論(1) | 轉發(0) | 0
上一篇:SQL2005備份
下一篇:sql2000與sql2005資料互相導入導出 MS SQL
相關熱門文章
- ABAP文章索引
- 資料庫課程設計報告(倉庫管理...
- 拼音漢字對照表
- sql isnull函數的使用
- 資料挖掘電子書下載下傳
- 檔案去重,如何解決Hash沖突的...
- 配置CI架構的rewrite 老是出...
- CentOS下,PHP如何實作SSH2擴...
- 做資料統計有沒有比較好的PHP...
- C++ 拷貝一個對象是什麼意思...
給主人留下些什麼吧!~~
chinaunix網友2010-08-24 08:56:10
Download More than 1000 free IT eBooks: http://free-ebooks.appspot.com
回複 | 舉報 評論熱議