远程sql 同步程序


exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
GO
select * into BookHouse.dbo.B_Bank from openrowset('SQLOLEDB','Server=203.166.188.64;PWD=jsrjek@2015;UID=BJ_JRE;','select * from BJ_JRE.dbo.B_Bank') as t
GO
exec sp_configure 'Ad Hoc Distributed Queries',0
reconfigure
exec sp_configure 'show advanced options',0
reconfigure

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