当前位置:Gxlcms >
数据库问题 >
解决SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT 'OpenRowset/OpenDatasource' 的访问
解决SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT 'OpenRowset/OpenDatasource' 的访问
时间:2021-07-01 10:21:17
帮助过:22人阅读
--配置权限
2 EXEC sp_configure
‘show advanced options‘,
1;
3 GO
4 RECONFIGURE;
5 GO
6 EXEC sp_configure
‘Ad Hoc Distributed Queries‘,
1;
7 GO
8 RECONFIGURE;
9 GO
执行结果:

关闭Ad Hoc Distributed Queries组件,在sql查询编辑器中执行如下语句:
1 exec sp_configure ‘Ad Hoc Distributed Queries‘,0;
2 go
3 reconfigure;
4 go
5 exec sp_configure ‘show advanced options‘,0;
6 go
7 reconfigure;
8 go
解决SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT 'OpenRowset/OpenDatasource' 的访问
标签:安全 语句 使用 查询 row pre 组件 服务 系统