Skip to content Skip to sidebar Skip to footer

Sql Server Linked Server Issue "login Failed For User 'nt Authority\anonymous Logon'

I have a domain user on both linked server and server which is referring the linked server. Same domain user is added to the pool identity of web supplication ( asp.net). What is h

Solution 1:

This is because of "2-Hops" issue with SQL server. I was able to fix this issue in the two ways: 1. Still using Linked Servers: On the remote server create user with SQL Server authentication and give all needed permissions. Then open linked server properties and mapping for your account to the user that you just created, like this: enter image description here

After that you will be able to run your scripts

  1. Using openrowset:

    SELECT a.* FROM OPENROWSET('SQLNCLI', 'Server=;Trusted_Connection=yes;', 'SELECT * from .dbo.') AS a;

Post a Comment for "Sql Server Linked Server Issue "login Failed For User 'nt Authority\anonymous Logon'"