0
DeviceName is the name of another sqlinstance
EXEC sp_addlinkedserver @server='sqlinstance', @srvproduct='',@provider='SQLOLEDB',@datasrc='sqlinstance\instance1'
EXEC sp_addlinkedsrvlogin 'sqlinstance', 'false', NULL, 'sa', ''
select * from sqlinstance.Table.dbo.linklist
Posted on 3:54 AM by Softminer and filed under
SQL
DeviceName is the name of another sqlinstance
EXEC sp_addlinkedserver @server='sqlinstance', @srvproduct='',@provider='SQLOLEDB',@datasrc='sqlinstance\instance1'
EXEC sp_addlinkedsrvlogin 'sqlinstance', 'false', NULL, 'sa', ''
select * from sqlinstance.Table.dbo.linklist
Post a Comment