开启功能:exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
关闭功能:
exec sp_configure 'Ad Hoc Distributed Queries',0
reconfigure
exec sp_configure 'show advanced options',0
reconfigure
查询语句:
select * from openrowset('SQLOLEDB','sql服务器名';'用户名';'密码',数据库名.dbo.表名)
本文深入探讨了SQL Server中的功能配置方法,包括如何开启或关闭AdHocDistributedQueries功能,以及展示如何使用openrowset查询语句进行数据访问。
1007

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



