use master
exec sp_addlinkedserver '192_168_200_254', ' ', 'SQLOLEDB ', '192.168.200.254'
exec sp_addlinkedsrvlogin '192_168_200_254', 'false ',null, 'username', 'password'
--不用时可以删除
--exec sp_dropserver '192_168_200_254', 'droplogins '
--查数据
select * from [192_168_200_254].dbname.dbo.tablename where InsertTime>DATEADD(DD,-10,GETDATE())
--插数据
select * into localtablename from [192_168_200_254].dbname.dbo.tablename where InsertTime>DATEADD(DD,-10,GETDATE())