Solved

SQL jobs are failing to run after upgrading from SQL 2005 TO SQL 2008 SP1

Posted on 2011-03-11
5
281 Views
Last Modified: 2012-05-11
I am having a strange problem with certain SQL scheduled jobs failing every night.  I recently did a SQL upgrade on a SQL 2005 VM to SQL 2008 SP1.  The upgrade went smoothly with no errors to report.  But the following day I had several SQL jobs fail to run.  

I was able to manually run them with no problems.  I also scheduled the jobs to run at a different time and they ran fine.  But when they are scheduled to run at 8PM which they are normally scheduled to run they all failed with the following error message.

Date            3/10/2011 8:00:02 PM
Log            Job History (DISTRIBUTION.Subplan_1)

Step ID            1
Server            SERVERNAME
Job Name            DISTRIBUTION.Subplan_1
Step Name            Subplan_1
Duration            00:00:24
Sql Severity            0
Sql Message ID            0
Operator Emailed            
Operator Net sent            
Operator Paged            
Retries Attempted            0

Message
Executed as user: Domain Name\account name. Microsoft (R) SQL Server Execute Package Utility  Version 10.0.2531.0 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  8:00:03 PM  Progress: 2011-03-10 20:00:13.30     Source: {DB51C47F-D2DD-47D8-B844-96E86F56A252}      Executing query "DECLARE @Guid UNIQUEIDENTIFIER      EXECUTE msdb..sp...".: 100% complete  End Progress  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  8:00:03 PM  Finished: 8:00:25 PM  Elapsed:  21.891 seconds.  The package execution failed.  The step failed.

This is strange since running this job manually or at a different time works fine with no errors.  

I also deleted the old maintenance jobs and created new ones to see if this would resolve the problem and it did not.  

I am still having the same issues.




0
Comment
Question by:RayManAaa
  • 2
  • 2
5 Comments
 
LVL 29

Expert Comment

by:Rich Weissler
ID: 35110520
Just to double check, I haven't done an upgrade like this... but I do know that SQL 2008 sometimes present challenges because administrators on the local box don't necessary have SA permissions to SQL.  Referring to the message above... can you confirm that "Domain Name\account name" still has permissions to run the job?

(If you run the job manually, I believe it'll run under the permissions of the person manually running the job... not necessarily the person the job/task is configured to run as...)
0
 

Author Comment

by:RayManAaa
ID: 35115829
Yes, you are correct, when you run the job manually you run it under the permissions you are logged in with. Also, I am the local admin on this box and have sa rights.  The jobs are running under a windows domain account this account has local admin and sa permissions.  I never had a problem with any of these jobs failing before.  These problems started to occur after I did the upgrade to SQL 2008 SP1.  

Also in a vain attempt to resolve this problem I deleted these SQL jobs which were failing and re-creating them.  But for some reason these newly created jobs also to failed to run.  I have done many upgrade like this before and I never had any issues like this.  
0
 
LVL 29

Accepted Solution

by:
Rich Weissler earned 500 total points
ID: 35131764
Okay, trying wrapping my head around this, and what could be causing it to fail, and I eliminated almost everything I could think of... assuming you already checked it.  Finally I just decided to fall back on my google-fu.
http://ms-abhay.blogspot.com/2008/02/dtexec-package-execution-returned.html

And the answer there is "Check the sp_configure values and see if "allow updates" is set to 1 by mistake ..
reset it to 0 and you are done ...... "


See if that works for you.  *worry*
0
 

Author Closing Comment

by:RayManAaa
ID: 35258186
Oops,I forgot to award the points!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
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…
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 to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

760 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

21 Experts available now in Live!

Get 1:1 Help Now