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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -