sqlserver建dblink

--establish connection 
exec sp_addlinkedserver'ITSV','','SQLOLEDB','IP address without port' exec sp_addlinkedsrvlogin'ITSV' ,'false' ,null , 'username' ,'password' --test select* from ITSV.Meetrend.dbo.TcCustomerAuth drop table TcCustomerAuth copy data from official library select * into TcCustomerAuth from ITSV.Meetrend.dbo.TcCustomerAuth;

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324977196&siteId=291194637