server建立dblink sql_SQLSERVER简单创建DBLINK操作远程服务器数据库的方法
exec sp_addlinkedserver @server='XWAS_SMS',@srvproduct='',@provider='SQLOLEDB',@datasrc='10.131.20.100' exec sp_addlinkedsrvlogin 'WAS_SMS','false', NULL,'CustomSMS','XXSqlGdn@XInfoxMas2008' select top 100 * from AS400.AS400_Extract.DBO.ORDUNA