--创建链接服务器
exec sp_addlinkedserver 'srv_lnk', ' ', 'SQLOLEDB ', '121.52.215.250'
exec sp_addlinkedsrvlogin 'srv_lnk', 'false ',null, 'sa ', '12345678'
go
--导入示例
SET IDENTITY_INSERT MN_ExamPaper ON
--INSERT into MN_ErrorExam(id,qid,errorNum,qType) select * from srv_lnk.OnLine.dbo.ErrorTitle
SET IDENTITY_INSERT MN_ExamPaper off
--不再使用时删除链接服务器
exec sp_dropserver 'srv_lnk', 'droplogins'