How does local login impersonation work in SQL Server?

How does local login impersonation work in SQL Server?

The default mapping states that SQL Server uses the user credentials of the local login when connecting to the linked server on behalf of the login. This is equivalent to executing sp_addlinkedsrvlogin with @useself set to true for the linked server, without specifying a local user name.

How to create linked server impersonation of Windows?

I am trying to set up a linked server on Server A to Server B using windows authentication. Using SSMS, I can connect to both Server A (from ServerB) and Server B (From Server A) using Windows Authentication and the username DOMAIN\\User. Additionally, when I log into Server A from Server B or vice versa and run the following command:

How to resolve failed connection test issue in adding?

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) Login failed for user ‘NT AUTHORITY\\ANONYMOUS LOGON’. (Microsoft SQL Server, Error: 18456) Add the SQL Server 2008 R2 instance on my Windows 7 machine as linked server to the SQL Server 2005 instance on the Windows Server 2008 R2 machine.

Which is the default mapping for SP _ addlinkedsrvlogin?

The default mapping states that SQL Server uses the user credentials of the local login when connecting to the linked server on behalf of the login. This is equivalent to executing sp_addlinkedsrvlogin with @useself set to true for the linked server, without specifying a local user name.

How to create a local login for a linked server?

A default mapping between all logins on the local server and remote logins on the linked server is automatically created by executing sp_addlinkedserver. The default mapping states that SQL Server uses the user credentials of the local login when connecting to the linked server on behalf of the login.

How are Logon credentials determined on a linked server?

Now, despite the following description of how logon credentials are determined (from MSDN): A default mapping between all logins on the local server and remote logins on the linked server is automatically created by executing sp_addlinkedserver.