Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 linked sql servers login failing

Author  Topic 

qwertyjjj
Posting Yak Master

131 Posts

Posted - 2007-07-17 : 10:06:20
Server1 sa password is password1
server2 sa password is password2

I can't execute sql with linked server tables because the login fails for sa.
When I setup a login with the same password on both servers, it's fine.
Is there a way to save the password?

I used sp_add_linked_server to generate the link between them.

Server: Msg 18456, Level 14, State 1, Procedure InsertOutstandingInvoices, Line 6
Login failed for user 'sa'.

the line it fails on is where I have qualified the server name:
[server].[db].dbo.[tablename]

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-07-17 : 13:07:45
Did you map user on linked server yet?
Go to Top of Page

qwertyjjj
Posting Yak Master

131 Posts

Posted - 2007-07-18 : 06:41:02
I think so but I'm using sa on both servers.
I right click properties on the linked server and the details are in there...
ANything to check?

Server: Msg 18456, Level 14, State 1, Procedure InsertOutstandingInvoices, Line 6
Login failed for user 'sa'.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-07-18 : 11:45:56
Checked security page? What does it say?
Go to Top of Page
   

- Advertisement -