Ad Hoc Distributed Queries组件被禁用的解决办法

by:授客 QQ1033553122

SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用sp_configure 启用 'Ad Hoc Distributed Queries'。有关启用 'Ad Hoc Distributed Queries' 的详细信息,请参阅 SQL Server 联机丛书中的 "外围应用配置器"。

原因:

是因为SQL Server的Ad Hoc Distributed Queries组件被禁用了,这里我用的SQL Server版本是2005,只需要开启Ad Hoc Distributed Queries就可以了,方法如下:

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

最新文章

  1. AnjularJS系列5 —— scopes、module、controller
  2. 腾讯数据总监:运营人员必须掌握的APP基础数据分析体系(没有比这篇更系统全面的)
  3. 线程和进程详解(以java为例具体说明)
  4. Cocos2d-x下Lua调用自定义C++类和函数的最佳实践[转]
  5. VB 核心编程及通用模块开发 笔记1
  6. windowIsTranlucent 属性
  7. JS多维数组转一维
  8. leetcode第一刷_Largest Rectangle in Histogram
  9. 设置SQLServer数据库中某些表为只读的多种方法
  10. jquery插件FlexiGrid的使用
  11. Android实战简易教程-第三十四枪(基于ViewPager和FragmentPagerAdapter实现滑动通用Tab)
  12. 使用sysbench对mysql压力测试
  13. Ubuntu搭建owncloud10
  14. 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第5章编程练习8
  15. linux03:系统常用的命令
  16. 解题(DirGraCheckPath--有向图的遍历(深度搜索))
  17. 008-副文本编辑器UEditor
  18. JAVA自动补全代码
  19. VisualStudio:添加现有项时使用添加为链接
  20. java.security.cert.CertificateException: No subject alternative names present

热门文章

  1. EFCore.MySql当模型遇到int[]怎么办
  2. 课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 1、两层神经网络的单样本向量化表示与多样本向量化表示
  3. Json.Net 在.Net Core 2.0 中序列化DataSet 问题
  4. iconfont 批量把图标加入购物车的方法
  5. Android_ 重写系统Crash处理类,保存Crash信息到SD卡 和 完美退出程序的方法
  6. maven install 打包 报错 Cannot run program "gpg.exe": CreateProcess error
  7. gradle 转 maven
  8. Spring Aop AfterReturning接收返回值
  9. GCD之Group
  10. Angular2-组件间数据传递的两种方式