SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问
时间:2021-09-01 22:16:42
收藏:0
阅读:32
System.Data.SqlClient.SqlException:“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”。”
master下执行如下:
启用Ad Hoc Distributed Queries:
exec sp_configure ‘show advanced options‘,1
reconfigure
exec sp_configure ‘Ad Hoc Distributed Queries‘,1
reconfigure
12021Z381750
原文:https://www.cnblogs.com/tuxer/p/15210354.html
评论(0)