您的位置:首页 > 数据库

查远程数据库 sqlserver

2016-05-10 13:14 253 查看
sqlserver:

exec sp_configure 'show advanced options',1

reconfigure

exec 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: