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 2008 Forums
 SQL Server Administration (2008)
 linked server now issue

Author  Topic 

kx250f37
Starting Member

8 Posts

Posted - 2012-02-29 : 14:20:46
hello i have server A with a database and a stored proc that needs to read data in another server B.

I did the following on server A:
USE master;
GO
EXEC sp_addlinkedserver
@server='ServerB',
@srvproduct='SQL Server'

EXEC sp_addlinkedsrvlogin 'ServerB', 'True'


I then tried to create my stored proc on server A and got the following:

Msg 18456, Level 14, State 1, Line 1
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

Can someone help?

influent
Constraint Violating Yak Guru

367 Posts

Posted - 2012-03-01 : 19:52:52
I've had that problem before, and I believe I've fixed it by going to the Security tab of the linked server properties and setting up a local login with impersonate turned on and selected "Be made using this security context." You'll have to figure out a remote login you can use.
Go to Top of Page
   

- Advertisement -