这样可以<br> if exists(select 1 from master..sysservers where srvname='srv_lnk') <br> exec sp_dropserver 'srv_lnk','droplogins' <br> go <br>exec sp_addlinkedserver 'srv_lnk','','SQLOLEDB','DATASERVER' <br> exec sp_addlinkedsrvlogin 'srv_lnk','false',null,'usrname','pwd' <br> go <br> <br> --查询示例 <br> select * into dbo.mz_patient from srv_lnk.dbname.dbo.tblname