Solved

Windows Authentication Error

Posted on 2008-10-14
5
9,713 Views
Last Modified: 2009-07-28
I have a newly built Windows Server 2008 Enterprise server built on a VMware ESX virtual machine running SQL Server 2008 Standard.  This server is a member of our Active Directory domain and the SQL service account is a domain user.  Also, SQL Server is set up with mixed mode authentication.

I have created a Maintenance Plan which is set to run once a day that will do a full back up of all user DB's.  No matter how I run it (on schedule or manually executed) the job fails with the error I have included at the end.  I have tried logging in to SQL with with Managment Studio both remotely and on the local machine and I used my own domain account which is a local admin on the machine and a member of the sysadmin role in SQL Server.  When I do a trace of the the maintenance plan when i try to run it i can see it is always trying to execute as the SQL Server Agent account which is the same as my database engine service account (also a member of the sysadmin role).

I get similar errors when I try to run reports using Reporting Services.  However, everything else works just fine.  I have website that use this DB server and they can connect just fine and I can connect to it using Management Studio with our a problem.

Any help is appreciated.

Thanks!
Date        10/10/2008 2:43:53 PM

Log        Job History (Daily Full User DB Backups.Subplan_1)
 

Step ID        1

Server        SQL08-TEST

Job Name        Daily Full User DB Backups.Subplan_1

Step Name        Subplan_1

Duration        00:00:04

Sql Severity        0

Sql Message ID        0

Operator Emailed       

Operator Net sent       

Operator Paged       

Retries Attempted        0
 

Message

Executed as user: ADS\dbact. Microsoft (R) SQL Server Execute Package Utility  Version 10.0.1600.22 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  2:43:53 PM  Error: 2008-10-10 14:43:56.87     Code: 0xC00291EC     Source: {4E3EF9A8-5D21-46F6-AAA9-AC6918845FD4} Execute SQL Task     Description: Failed to acquire connection "Local server connection". Connection may not be configured correctly or you may not have the right permissions on this connection.  End Error  Warning: 2008-10-10 14:43:56.87     Code: 0x80019002     Source: OnPreExecute      Description: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.  End Warning  Error: 2008-10-10 14:43:57.21     Code: 0xC0024104     Source: Back Up Database Task      Description: The Execute method on the task returned error code 0x80131904 (Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.). The Execute method must succeed, and indicate the result using an "out" parameter.  End Error  Error: 2008-10-10 14:43:57.24     Code: 0xC0024104     Source: {4B65BEDE-D274-4B06-8CA7-A7DB4DE235C3}      Description: The Execute method on the task returned error code 0x80131904 (Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.). The Execute method must succeed, and indicate the result using an "out" parameter.  End Error  Warning: 2008-10-10 14:43:57.24     Code: 0x80019002     Source: OnPostExecute      Description: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (2) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.  End Warning  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  2:43:53 PM  Finished: 2:43:57 PM  Elapsed:  3.421 seconds.  The package execution failed.  The step failed.

Open in new window

0
Comment
Question by:jasco4617
  • 3
  • 2
5 Comments
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 22715958
I found this:

http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3987600&SiteID=17

which suggests verifying that you are qualifying the username as domain\username and not just username.
0
 
LVL 4

Author Comment

by:jasco4617
ID: 22717357
That is actually my post.  I posted this question there a few days ago, but figured i would post here also.  I am using fully qualified accounts.  In my error message above you can see that the user it is being run as is "ADS\dbact".

0
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 22717422
doh!  I guess I read it too fast.
0
 
LVL 4

Author Comment

by:jasco4617
ID: 22735001
I created a new SQL Login (not a domain or local machine account) and
made it part of the sysadmin role.  Then I went into the connection
properties for my db connection in the Maintenance Plan and changed
the log in credientials from using Windows NT Integrated
Authentication to using the new user i just created.  After doing so
everything worked as it should.

I am really confused...
0
 
LVL 4

Accepted Solution

by:
jasco4617 earned 0 total points
ID: 22990932
I could not find a solution for this anywhere or from anyone.  I reinstalled SQL Server and it worked.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how the fundamental information of how to create a table.

746 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

9 Experts available now in Live!

Get 1:1 Help Now