Solved

Windows Authentication Error

Posted on 2008-10-14
5
9,720 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Returning data in a different format 8 45
SQL find overlapping events (by time) 2 25
T-SQL:  I Want "Summary"--Not "Detail" 6 19
TSQL previous 5 22
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

932 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