Solved

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

Posted on 2015-02-16
6
294 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 45

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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 45

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
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.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now