AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 484859
Accepted
Ian Boyd
Ian Boyd
Asked: 2013-03-06 06:40:47 +0800 CST2013-03-06 06:40:47 +0800 CST 2013-03-06 06:40:47 +0800 CST

如何在 SQL Server 2008 R2 中启用 Ad Hoc 分布式查询

  • 772

当我在 SQL Server 2000 中使用 OPENROWSET 运行查询时,它起作用了。

但 SQL Server 2008 中的相同查询会生成以下错误:

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

我试着跑

EXEC sp_configure 'show advanced options', 1
RECONFIGURE
GO
EXEC sp_configure 'ad hoc distributed queries', 1
RECONFIGURE
GO

但是任何运行尝试RECONFIGURE都会出现错误:

Msg 5808, Level 16, State 1, Line 1
Ad hoc update to system catalogs is not supported.

如何在 SQL Server 2008 R2 中启用 Ad Hoc 分布式查询?

注意:Microsoft SQL Server 2008 R2 (SP1) - 10.50.2550.0 (X64) Jun 11 2012 16:41:53 Copyright (c) Microsoft Corporation Standard Edition (64-bit) o​​n Windows NT 6.1 (Build 7601: Service Pack 1) (管理程序)

sql-server
  • 1 1 个回答
  • 14285 Views

1 个回答

  • Voted
  1. Best Answer
    Glenn Sullivan
    2013-03-06T06:47:55+08:002013-03-06T06:47:55+08:00

    从这里: http ://sqlserverpedia.com/blog/database-design/error-message-ad-hoc-update-to-system-catalogs-is-not-supported/

    要么先运行:

    EXEC sp_configure ‘allow updates’, 0
    RECONFIGURE
    

    或将您的RECONFIGURE陈述更改为RECONFIGURE WITH OVERRIDE:

    EXEC sp_configure 'show advanced options', 1
    RECONFIGURE WITH OVERRIDE --really reconfigure
    GO
    EXEC sp_configure 'ad hoc distributed queries', 1
    RECONFIGURE WITH OVERRIDE --really reconfigure
    GO
    
    • 4

相关问题

  • sql server 连接字符串上的网络数据包大小以提高吞吐量

  • 基于 Microsoft 的服务器(IIS、MSSQL 等)上的病毒扫描应排除哪些内容?

  • SQL 洗衣清单

  • OPENROWSET、二进制文件、varchars 和 varbinaries

  • 聚集索引与非聚集索引?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve