Solved

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

Posted on 2015-02-16
6
357 Views
Last Modified: 2015-02-24
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
0
Comment
Question by:Teoman Sahin
  • 3
  • 2
6 Comments
 
LVL 47

Expert Comment

by:Vitor Montalvão
ID: 40612233
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?
0
 
LVL 13

Accepted Solution

by:
LIONKING earned 500 total points
ID: 40612273
The problem you're having is that you're using a local service account to log in to your remote server.
Usually, the SQL Server service and the SQL Agent service are run using domain accounts, so that you can configure them to access several servers if needed (just to name one advantage, as there are many).

Is this stored procedure using a linked server to connect to the SQL 2012 box? If so, you will have to change the security settings on your linked server. (check https://technet.microsoft.com/en-us/library/ff772782(v=sql.110).aspx#Security)
0
 

Author Comment

by:Teoman Sahin
ID: 40613639
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..
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 47

Expert Comment

by:Vitor Montalvão
ID: 40613659
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.
0
 

Author Comment

by:Teoman Sahin
ID: 40627921
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..
0
 

Author Comment

by:Teoman Sahin
ID: 40627931
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..
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sql server concatenate fields 10 35
always on switch back after failover 2 34
sql server tables from access 18 18
CPU high usage when update statistics 2 30
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question