Solved

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

Posted on 2015-02-16
6
428 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 49

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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 49

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
monitoring configuration for SQL server DB 32 50
SCOM to SQL port 14xx failed? 1 32
T-SQL: Stored Procedure Syntax 3 34
Need multiple Group By's 8 28
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.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how the fundamental information of how to create a table.

726 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