当前位置:首页 > 数据库 > Sqlserver

Sql Server远程查询db 表中的数据,以本地

sp_configure ‘show advanced options‘, 1;
RECONFIGURE;
sp_configure ‘Ad Hoc Distributed Queries‘, 1;
RECONFIGURE;
GO



step 2:



insert into table_name
columns


SELECT 
columns


 FROM OPENROWSET(‘SQLNCLI‘, 
‘Server=XXXX,1433;uid=XXXX;pwd=XXXX;Database=cb_name;‘,‘SELECT * FROM table_name‘) 



版权声明:本文博客原创文章,博客,未经同意,不得转载。

Sql Server远程查询db 表中的数据,以本地

标签:

本文系统来源:http://www.cnblogs.com/yxwkf/p/4616157.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐