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

最新文章

  1. java笔记--笔试中极容易出错的表达式的陷阱
  2. 洛谷 P1466 集合 Subset Sums Label:DP
  3. 如何理解vue.js组件的作用域是独立的
  4. 用python实现计算1-2*((60-30+(-40/5)*(9-2*5/3+7/3*99/4*2998+10*568/14))-(-4*3)/(16-3*2))类似的公式计算
  5. Javascript单元测试之QUnit
  6. poj 3661 Running
  7. Water --- CSU 1550: Simple String
  8. hdu 1049 Climbing Worm
  9. 【Vijos】1792 摆花
  10. MATLAB light material lighting
  11. nyoj 448 寻找最大数
  12. uva 227 Puzzle
  13. ios ColorLUT滤镜
  14. ubunut在系统恢复模式下无法改动rootpassword的分析和解决
  15. kubernetes进阶之四:Label和Label Selector
  16. python接口自动化测试十一:传参数:data与json
  17. dos命令:网络相关命令
  18. 【译】Steve Yegge的文章《Practicing Programming》
  19. exception in initAndListen: 12596 old lock file, terminating
  20. manager

热门文章

  1. A Tour of Go Exercise: Errors
  2. light oj 1008 - Fibsieve`s Fantabulous Birthday
  3. hdoj 2051 Bitset
  4. 一步一步学数据结构之n--n(图遍历--深度优先遍历--非递归实现)
  5. 剑指OFFER之第一个只出现一次的字符(九度OJ1283)
  6. iOS sharedSDK详解
  7. Aizu 2302 On or Off dfs/贪心
  8. VPN介绍--虚拟网络
  9. Webx学习(一)
  10. POJ 3692 最大独立集