sqlserver:
exec sp_configure 'show advanced options',1
reconfigureexec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
select a.*,b.tbegin from
openrowset( 'SQLOLEDB', '192.168.1.100'; 'sa'; '123',[zl_hospital].[dbo].[t_personinfo]) a
, openrowset( 'SQLOLEDB', '192.168.1.100'; 'sa'; '123',[zl_hospital].[dbo].[t_use]) b
where a.idno=b.idno
本文介绍如何在 SQL Server 中启用高级选项及分布式查询,并演示了使用 OPENROWSET 进行跨服务器数据检索的方法。
5022

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



