排错-Ad Hoc Distributed Queries组件被禁用的解决办法
Ad Hoc Distributed Queries组件被禁用的解决办法
by:授客 QQ:1033553122
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
最新文章
- AnjularJS系列5 —— scopes、module、controller
- 腾讯数据总监:运营人员必须掌握的APP基础数据分析体系(没有比这篇更系统全面的)
- 线程和进程详解(以java为例具体说明)
- Cocos2d-x下Lua调用自定义C++类和函数的最佳实践[转]
- VB 核心编程及通用模块开发 笔记1
- windowIsTranlucent 属性
- JS多维数组转一维
- leetcode第一刷_Largest Rectangle in Histogram
- 设置SQLServer数据库中某些表为只读的多种方法
- jquery插件FlexiGrid的使用
- Android实战简易教程-第三十四枪(基于ViewPager和FragmentPagerAdapter实现滑动通用Tab)
- 使用sysbench对mysql压力测试
- Ubuntu搭建owncloud10
- 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第5章编程练习8
- linux03:系统常用的命令
- 解题(DirGraCheckPath--有向图的遍历(深度搜索))
- 008-副文本编辑器UEditor
- JAVA自动补全代码
- VisualStudio:添加现有项时使用添加为链接
- java.security.cert.CertificateException: No subject alternative names present
热门文章
- EFCore.MySql当模型遇到int[]怎么办
- 课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 1、两层神经网络的单样本向量化表示与多样本向量化表示
- Json.Net 在.Net Core 2.0 中序列化DataSet 问题
- iconfont 批量把图标加入购物车的方法
- Android_ 重写系统Crash处理类,保存Crash信息到SD卡 和 完美退出程序的方法
- maven install 打包 报错 Cannot run program ";gpg.exe";: CreateProcess error
- gradle 转 maven
- Spring Aop AfterReturning接收返回值
- GCD之Group
- Angular2-组件间数据传递的两种方式