远程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

posted @ 2018-01-17 23:09  ransom  阅读(180)  评论(0编辑  收藏  举报