SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 'Ad Hoc Distributed Queries'。有关启用 'Ad Hoc Distributed Queries' 的详细信息,请参阅 SQL Server 联机丛书中的 "外围应用配置器
解决方法如下:
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
相关推荐
SQL Server 阻止了对组件 'Ad Hoc Distributed Queries'2009年08月28日 星期五 15:00SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问,因为此组件已作为此...
SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 'Ad Hoc ...
SQL Server blocked access to STATEMENT 'OpenRowset/OpenDatasource' of component 'Ad Hoc Distributed Queries' because this component is turned off as part of the security configuration for this server....
1、SQLServer直连Excel做数据查询方法 2、Microsoft.ACE.OLEDB.12.0驱动下载 解决 未在本地计算机上注册“Microsoft.ACE.OLEDB.12.0”提供程序 ...EXEC sp_configure 'Ad Hoc Distributed Queries', 1 GO RECONFIGURE
--打开远程连接命令,不打开不可以执行 exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure
受以前旧同事之托,在博客里发这段脚本: exec sp_configure ‘show advanced options’,1 reconfigure exec sp_configure ‘Ad Hoc Distributed Queries’,1 reconfigure SELECT * INTO tmp_asset FROM OPENROWSET(...
exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure create database jz go use jz SELECT * INTO car FROM OPENDATASOURCE ('Microsoft.Jet.OLEDB.4.0', 'Data Source="D:\GCLsoft\jz\Debug\...
GO EXEC sp_configure ‘Ad Hoc Distributed Queries’, 1; GO RECONFIGURE; GO SQL SERVER 和EXCEL的数据导入导出 1、在SQL SERVER里查询Excel数据: — ====================================================== ...
代码如下: exec sp_configure ‘show advanced options’,1 reconfigure exec sp_configure ‘Ad Hoc Distributed Queries’,1 reconfigure 代码如下: SELECT * FROM OPENDATASOURCE(‘Microsoft.Jet.OLEDB.4.0’, ...
1433 SQL入侵恢复xp_cmdshell方法总结 sql server 2005下开启xp_cmdshell的办法 EXEC sp_configure ‘show advanced options’, 1;RECONFIGURE;...exec sp_configure ‘Ad Hoc Distributed Queries’,1;
— 开启高级配置 RECONFIGURE EXEC sp_configure ‘Ad Hoc Distributed Queries’, 1;–开启分布式查询 RECONFIGURE set IDENTITY_insert TestTable on –设置 某表允许插入递增量 INSERT INTO TestTable(ID,Date,...
Exploratory Ad-Hoc Analytics for Big Data 1 Exploratory Analytics for Big Data 2 A Top-K Entity Augmentation System 3 DrillBeyond -- Processing Open World SQL 4 Summary and Future Work Pattern ...
Automatic Example Queries for Ad Hoc Databases (Page 1319) Bill Howe (University of Washington) Garret Cole (University of Washington) Nodira Khoussainova (University of Washington) Leilani Battle ...