--创建链接服务器
exec sp_addlinkedserver ‘ITSV ‘, ‘ ‘, ‘SQLOLEDB ‘, ‘10.150.0.102‘
exec sp_addlinkedsrvlogin ‘ITSV ‘, ‘false ‘,null, ‘sa‘, ‘[email protected]‘
--查询示例
select * from ITSV.Tengbo.dbo.T_Role_Privilege as i
inner join T_Role_Privilege as t on t.ModuleNo=i.ModuleNo
时间: 2024-10-05 15:09:13