码迷,mamicode.com
首页 > 其他好文 > 详细

远程查询

时间:2018-02-05 20:08:32      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:sel   blog   nbsp   ons   driver   查询   sql   gpo   exe   

EXEC sp_configure ‘show advanced options‘,1
GO

RECONFIGURE WITH OVERRIDE;
GO
EXEC sp_configure ‘Ad Hoc Distributed Queries‘,1
GO

RECONFIGURE WITH OVERRIDE;
GO


select * from openrowset(‘SQLOLEDB‘,‘DRIVER={SQL Server};Server=47.52.90.38;PWD=47@jre2017;UID=sa;‘,‘select * from JRE..T_base‘) AS a

GO

EXEC sp_configure ‘show advanced options‘,0
GO

RECONFIGURE WITH OVERRIDE;
GO
EXEC sp_configure ‘Ad Hoc Distributed Queries‘,0
GO

RECONFIGURE WITH OVERRIDE;
GO

 

远程查询

标签:sel   blog   nbsp   ons   driver   查询   sql   gpo   exe   

原文地址:https://www.cnblogs.com/ransom/p/8419019.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!