SQLServerScribbles.COM

SQL Server, SQL, Replication, SQL Server memory, SQL Server performance, SQL Server architecture, SQL Server cluster, SQL Server 2008, SQL Server 2012

Menu

Skip to content
  • Home
  • Disclaimer

An exception occured while executing a Transact-SQL statement or batch

February 18, 2013 by Karthick P.K

Login failed for user ‘NT AUTHORITY\ANONYMOUS LOGON’.

Problem description

Linked server queries fail with below error
{
Additional information:
.
(Microsoft.SqlServer.ConnectionInfo)
Login failed for user ‘NT AUTHORITY\ANONYMOUS LOGON’. (Microsoft SQL Server, Error: 18456)
}

Above error occurs when the kerberos authentication fails in SQL Server you can follow the simple steps below to fix the Kerberos authentication failures. More detailed troubleshooting steps for Kerberos authentication failure is documented in http://mssqlwiki.com/2013/12/09/sql-server-connectivity-kerberos-authentication-and-sql-server-spn-service-principal-name-for-sql-server/  

Action plan

If the startup account/ User Account is in a Windows Server 2003 functional level domain, in active directory users and computers Right-click Startup account, and then click Propertiesclick the Delegation tab. select Trust this user for delegation to any service (Kerberos only).
 
If the startup account/User account is in a Windows Server 2000 functional level domain, in active directory users and computers Right-click Startup account, and then click , In the Account options box, confirm that Account is sensitive and cannot be delegated is not selected.
 
Make sure SPN’s are registered for all the SQL Server instances.

Make sure login accounts have read and write SPN permissions. You can also workaround the issue by creating named pipe alias on source server to destination server. More details  in Kerberos Authentication in SQLServer

Advertisement
Posted in SQLServer connectivity, SQLServer general | Tagged (Microsoft SQL Server, An exception occured while executing a Transact-SQL statement or batch, Error: 18456), Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' | Leave a comment

Search

Authors

  • Karthick P.K
  • Pradeepa

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 848 other subscribers

RSS MSSQLWIKI.COM

  • Running 1 Million databases on Azure SQL October 11, 2020
  • Top SQL Server blogs from MSSQLWIKI January 11, 2014
  • SQL Server connectivity, Kerberos authentication and SQL Server SPN (Service Principal Name for SQL Server) December 9, 2013
  • Transactional Replication Part -2 November 22, 2013
  • Transactional Replication Part -1 November 22, 2013
  • Tempdb latch contention September 17, 2013
  • Troubleshooting Transactional replication Latency using Agent Statistics September 13, 2013
  • The connection to the primary replica is not active. The command cannot be processed June 20, 2013
  • False warning “A significant part of sql server process memory has been paged out” June 13, 2013
  • What does MemoryUtilization in sys.dm_os_ring_buffers and Memory_utilization_percentage in sys.dm_os_process_memory represents? June 2, 2013
  • SQL Server monitor May 11, 2013
  • Max server memory – Do I need to configure? April 22, 2013
  • SQL Server and VMware ballooning March 31, 2013
  • Inside sys.dm_os_ring_buffers March 29, 2013
  • SQL Server lock pages in memory March 26, 2013
  • SQL Server -g March 5, 2013
  • SQL Server Operating system (SOS) – Series 3 February 11, 2013
  • SQL Server Operating system (SOS) – Series 2 January 13, 2013
  • SQL Server Operating system (SOS) – Series 1 January 10, 2013
  • SQL Server fails to start with error "Failed allocate pages: FAIL_PAGE_ALLOCATION 1" During startup January 6, 2013

Other scribbles

  • Integration Services server cannot be configured because there are active operations. Wait until there are no active operations, and then try to configure the server again
  • SQL Server setup fails with “Failed to retrieve data for this request”
  • The selected Subscriber does not satisfy the minimum version compatibility level of the selected publication.
  • Sp_rename fails : Either the parameter @objname is ambiguous or the claimed @objtype (object) is wrong.
  • SSIS package fails with out of memory errors
  • Cannot bring the Windows Server Failover Clustering (WSFC) resource (ID ‘ ‘) online (Error code 5018).
  • SQL Server cluster installation checklist
  • PREEMPTIVE_OS_AUTHORIZATIONOPS waits in SQL Server
  • SQL Server Backup compression
  • Types of isolation levels in SQL Server
  • SQL Server database snapshot
  • How to create table with filestream column and Insert data
  • How to enable and configure Filestream in SQL SERVER 2008 / 2012
  • How to import/Export data in SQL Server
  • Create script for all objects in database with data
  • Steps to enable Alwayson in SQL Server 2012
  • How to create database mirroring
  • How to create log shipping in SQL Server
  • HOW TO INSTALL SQL Server CLUSTER IN HYPER-V
  • How to create merge replication in SQL Server
  • A SQL product other than SQL Server 2014 CTP1 is detected. You cannot install this release until the existing instances of SQL products are uninstalled
  • How to start replication agent in command prompt.
  • How to create transactional replication in SQL Server
  • How to configure distribution for replication
  • How to add node to SQL Server cluster
  • SQL Server Error while enabling Windows feature : NetFx3, Error Code : -2146498298
  • HOW TO CREATE CLUSTER USING HYPER-V
  • windows cluster freezes at “waiting for notification that node ‘‘ is a fully functional member of the cluster”
  • How to install cluster in windows 2008 and windows 2012
  • How to create shared disk using iSCSI Software Target
  • NON CLUSTERED COLUMNSTORE INDEX
  • How to create clustered and non-clustered index
  • Bulk insert fails with error 4861 Cannot bulk load because the file could not be opened
  • How to create SQL Server Agent Jobs
  • How to create backups using database maintenance plan
  • How to set Max degree of parallelism (MAXDOP)
  • SQL Server Database tuning advisor
  • How to configure maximum server memory
  • CryptAcquireContext and CryptReleaseContext example
  • Criticalsection example
  • CreateProcess example
  • CreateFileMapping or MapViewOfFileEx example
  • Capture context switches from dm_os_ring_buffers
  • SSIS package fails when executed as job using proxy account
  • How to stimulate a SQL Server resource failure in cluster
  • Error 601 : Could not continue scan with NOLOCK due to data movement.
  • SQL Server monitoring
  • Removing database mirroring
  • SQLServer LooksAlive and IsAlive Check
  • Builtin\Administrators cannot login in to SQL Server
wordpress counter

Follow me on Twitter

My Tweets
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • SQLServerScribbles.COM
    • Join 69 other followers
    • Already have a WordPress.com account? Log in now.
    • SQLServerScribbles.COM
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar