Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Windows Authentication Error

Posted on 2008-10-14
5
Medium Priority
?
9,820 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
[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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

609 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