问题
I am running SQL Server 2012 on two separate servers (let's call them Server A and Server B). On Server A, I have created a linked server to Server B called [ServerB]. I am able to query Server B from Server A without any problems:
SELECT * [ServerB].[MyDatabase].[dbo].[MyTable]
However, when I try to execute a stored procedure:
EXEC [ServerB].[MyDatabase].[dbo].[MyStoredProcedure]
...I get the following error:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
I've done a lot of Googling and I can't seem to determine the problem. It seems to me that this is not a "double-hop" issue.
来源:https://stackoverflow.com/questions/22309505/executing-a-stored-procedure-on-a-linked-server