SQLSERVER2000以上 Ad Hoc Distributed Queries的启用与关闭
2024-08-25 04:19:47
SQLSERVER2000以上的版本在查询分析器中查询ACCESS数据时提示:“
訊息 15281,層級 16,狀態 1,行 1
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'。
”(数据库为繁体版的提示),解决办法如下:
启用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
最新文章
- java笔记--笔试中极容易出错的表达式的陷阱
- 洛谷 P1466 集合 Subset Sums Label:DP
- 如何理解vue.js组件的作用域是独立的
- 用python实现计算1-2*((60-30+(-40/5)*(9-2*5/3+7/3*99/4*2998+10*568/14))-(-4*3)/(16-3*2))类似的公式计算
- Javascript单元测试之QUnit
- poj 3661 Running
- Water --- CSU 1550: Simple String
- hdu 1049 Climbing Worm
- 【Vijos】1792 摆花
- MATLAB light material lighting
- nyoj 448 寻找最大数
- uva 227 Puzzle
- ios ColorLUT滤镜
- ubunut在系统恢复模式下无法改动rootpassword的分析和解决
- kubernetes进阶之四:Label和Label Selector
- python接口自动化测试十一:传参数:data与json
- dos命令:网络相关命令
- 【译】Steve Yegge的文章《Practicing Programming》
- exception in initAndListen: 12596 old lock file, terminating
- manager