Select from multiple SQL Server 2008 databases not working -
i'm trying select few tables in different servers using sql server 2008. script i'm using:
exec sp_addlinkedserver @server = '192.168.5.208' select * [192.168.5.208].[hrm2].[dbo].tb_mt_pim
but doesn't work. returns message
'login failed. login untrusted domain , cannot used windows authentication'
can tell me why?
seems not adding authentication.
try:
exec sp_addlinkedsrvlogin @useself='false', @rmtsrvname='test_link', @rmtuser='user', @rmtpassword='secret'
obviously edit strings credentials , execute, should able connect then.
Comments
Post a Comment