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中开启和关闭AdHocDistributedQueries组件,通过执行特定的SQL语句实现跨服务器查询功能的启用与禁用,为数据库管理员提供了实用的操作指南。

2090

被折叠的 条评论
为什么被折叠?



