Link to home
Start Free TrialLog in
Avatar of Teoman Sahin
Teoman Sahin

asked on

Msg 18456, Sev 14, State 1, Line 1 : Login failed for user

there is a job running on the database "Sales" in sql server 2005 and in the second step of this job, it is collecting and processing  to other database on the other sql server 2012 but when this job executed with scheduled, it gets the following error " Msg 18456, Sev 14, State 1, Line 1 : Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. [SQLSTATE 28000]..when I check,sql server agent works under Local system account in sql server 2005 and I gave sysadmin role to NT AUTHORITY\SYSTEM in sql server 2012 and also it has sysadmin role on the sql server 2005 and I think it gets this error on the sql server 2012 so what should we do? please see job properties on sql server 2005 like attached file
properties-of-job.jpg
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

Please give a read on my article about SQL Server Security: The service account.

it is collecting and processing  to other database on the other sql server 2012
How it is doing that?
ASKER CERTIFIED SOLUTION
Avatar of Member_2_861731
Member_2_861731
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Teoman Sahin
Teoman Sahin

ASKER

yes this job is connected to a stored procedure on Sales database but before that, this job was working fine with other server(server B).A server has this job and B-server is other server..the database moved from B-server in sql server 2005 to C-server in sql server 2012 so if sql server agent and sql server services are running under domain accounts, how were they working with local system account? I could not understand..
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
(...)
sql server agent works under Local system account in sql server 2005 and I gave sysadmin role to NT AUTHORITY\SYSTEM in sql server 2012 and also it has sysadmin role on the sql server 2005 (...)
(...)if sql server agent and sql server services are running under domain accounts, how were they working with local system account?  I could not understand..

I can't also understand since you made controversial statements in this question. Please clarify.
LIONKING, as you said,there was a store prodecure in jobs connecting to other sql server 2012 by using linked server and I have set users and security permissions again and it works..
I've requested that this question be closed as follows:

Accepted answer: 0 points for Teoman Sahin's comment #a40613639

for the following reason:

LIONKING, as you said,there was a store prodecure connecting to other sql server 2012 by using linked server and I have set users and security permissions again and it works..