当前位置:Gxlcms > 数据库问题 > Sql Server远程查询db 表中的数据,以本地

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

时间:2021-07-01 10:21:17 帮助过:3人阅读

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 表中的数据,以本地

标签:

人气教程排行