SQL 2005启用组件Ad Hoc Distributed Queries
生活随笔
收集整理的這篇文章主要介紹了
SQL 2005启用组件Ad Hoc Distributed Queries
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
轉(zhuǎn)載
SQL Server 阻止了對(duì)組件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的訪問(wèn),因?yàn)榇私M件已作為此服務(wù)器安全配置的一部分而被關(guān)閉。系統(tǒng)管理員可以通過(guò)使用 sp_configure 啟用 'Ad Hoc Distributed Queries'。有關(guān)啟用 'Ad Hoc Distributed Queries' 的詳細(xì)信息,請(qǐng)參閱 SQL Server 聯(lián)機(jī)叢書(shū)中的 "外圍應(yīng)用配置器"。
?
于是按照提示翻了一下SQL 2005的聯(lián)機(jī)叢書(shū),得知啟用Ad Hoc Distributed Queries的方法,具體如下:?
execsp_configure?'show?advanced?options',1reconfigure
execsp_configure?'Ad?Hoc?Distributed?Queries',1
reconfigure
使用完畢后,記得要關(guān)閉它,因?yàn)檫@是一個(gè)安全隱患
execsp_configure?'Ad?Hoc?Distributed?Queries',0reconfigure
execsp_configure?'show?advanced?options',0
reconfigure
?
轉(zhuǎn)載于:https://www.cnblogs.com/watermarks/p/3217553.html
總結(jié)
以上是生活随笔為你收集整理的SQL 2005启用组件Ad Hoc Distributed Queries的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 再不懂ZooKeeper,就安安心心把这
- 下一篇: RedisView-开源跨平台的Redi