SQL启用 'Ad Hoc Distributed Queries'

来源:互联网 发布:nodejs和java接口通信 编辑:程序博客网 时间:2024/05/22 02:25

启用 'Ad Hoc Distributed Queries'

SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 'Ad Hoc Distributed Queries'。

EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE
GO
EXEC sp_configure 'Ad Hoc Distributed Queries', 1
GO
RECONFIGURE
GO




資料二:

   在Sql Server2005导入数据的时候出现的了一个问题:
insert into (test)values(test);
    结果提示:
    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:
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

阅读(364) | 评论(1) | 转发(0) |
0

上一篇:SQL2005备份

下一篇:sql2000与sql2005数据互相导入导出 MS SQL

相关热门文章
  • ABAP文章索引
  • 数据库课程设计报告(仓库管理...
  • 拼音汉字对照表
  • sql isnull函数的使用
  • 数据挖掘电子书下载
  • 文件去重,如何解决Hash冲突的...
  • 配置CI框架的rewrite 老是出...
  • CentOS下,PHP如何实现SSH2扩...
  • 做数据统计有没有比较好的PHP...
  • C++ 拷贝一个对象是什么意思...
给主人留下些什么吧!~~

chinaunix网友2010-08-24 08:56:10

Download More than 1000 free IT eBooks: http://free-ebooks.appspot.com

回复 | 举报
原创粉丝点击