Solved

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

Posted on 2011-03-11
5
292 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
[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
  • 2
  • 2
5 Comments
 
LVL 30

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 30

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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

728 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