We tried to schedule job in Sql server to take database backup. But it has been failed to execute.
While checking logs we could see 2 different errors.
SQL Agent error logs
Error,[382] Logon to server 'ServerName' failed (ConnLogJobHistory)
Error,[298] SQLServer Error: 18456 Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. [SQLSTATE 28000]
Error,[382] Logon to server 'ServerName' failed (ConnSetJobCompletionState)
08/18/2021 05:50:00,,Error,[382] Logon to server 'ServerName' failed (ConnAttemptCachableOp)
Event viewer windows log
Login failed for user 'UserName'. Reason: Could not find a login matching the name provided. [CLIENT: {ServerIp}]
What we need to actually do to fix this problem.