My client has a number of jobs that are run overnight. We've set them
up to email me when they're completed. Every morning I get in to a
bunch of emails like this:
<quote>
JOB RUN: 'Tech Pubs Email Notification' was run on 18/03/2006 at
00:00:00
DURATION: 0 hours, 0 minutes, 0 seconds
STATUS: Succeeded
MESSAGES: The job succeeded. The Job was invoked by Schedule 10 (Send
Mail). The last step to run was step 1 (Send Mail).
</quote>
However, the most important job - the database backup - fails every
time.
<quote>
JOB RUN: 'DB Backup Job for DB Maintenance Plan 'DB Maintenance Plan1''
was run on 20/03/2006 at 18:00:00
DURATION: 0 hours, 0 minutes, 2 seconds
STATUS: Failed
MESSAGES: The job failed. The Job was invoked by Schedule 7 (Schedule
1). The last step to run was step 1 (Step 1).
</quote>
What's strange is that the job runs successfully if you kick it off
manually (in EM: right-click and "Start Job")!!! Does anyone have any
idea of why that might be? Where to look for diagnostic information?
TIA
Edward 6 16372 te********@hotmail.com wrote: My client has a number of jobs that are run overnight. We've set them up to email me when they're completed. Every morning I get in to a bunch of emails like this:
<quote>
JOB RUN: 'Tech Pubs Email Notification' was run on 18/03/2006 at 00:00:00 DURATION: 0 hours, 0 minutes, 0 seconds STATUS: Succeeded MESSAGES: The job succeeded. The Job was invoked by Schedule 10 (Send Mail). The last step to run was step 1 (Send Mail). </quote>
However, the most important job - the database backup - fails every time.
<quote> JOB RUN: 'DB Backup Job for DB Maintenance Plan 'DB Maintenance Plan1'' was run on 20/03/2006 at 18:00:00 DURATION: 0 hours, 0 minutes, 2 seconds STATUS: Failed MESSAGES: The job failed. The Job was invoked by Schedule 7 (Schedule 1). The last step to run was step 1 (Step 1). </quote>
What's strange is that the job runs successfully if you kick it off manually (in EM: right-click and "Start Job")!!! Does anyone have any idea of why that might be? Where to look for diagnostic information?
TIA
Edward
Edward,
Have you got the right permissions?
This might sound a bit obvious but its usually the case. You might not
be the owner of the package and the system will only schedule the job
to run if the permissions are correct.
Bryan
Bryan wrote: te********@hotmail.com wrote:
[...]
Edward,
Have you got the right permissions?
This might sound a bit obvious but its usually the case. You might not be the owner of the package and the system will only schedule the job to run if the permissions are correct.
Bryan
I would have assumed so, but I'll check. Thanks for the suggestion.
Edward
Bryan wrote:
[...] Edward,
Have you got the right permissions?
This might sound a bit obvious but its usually the case. You might not be the owner of the package and the system will only schedule the job to run if the permissions are correct.
I checked on this today. All the jobs that run correctly have exactly
the same owners/permissions as the job that fails. I can't find any
attribute of the job (apart from what it actually does, obviously) that
distinguishes it from any of the other, successful jobs.
One other thing of which I was not aware. Apparently this job had been
scheduled successfully up until about a week ago, when it began
failing.
Any further thoughts/ideas?
TIA
Edward
Hi Edward,
To be honest I don't ( I hate admitting defeat though.....)
I have encountered this problem in the past especially when picking up
from any previous owners of packages.
One solution I have done is to copy the code from one package and dump
it into a package that is being allowed to run but with a different
owner.
This usually confirmed to myself that the problem must a a Owner /
Permission issue.
Apart from that I'm at a loss to recommend any other course of action.
(te********@hotmail.com) writes: I checked on this today. All the jobs that run correctly have exactly the same owners/permissions as the job that fails. I can't find any attribute of the job (apart from what it actually does, obviously) that distinguishes it from any of the other, successful jobs.
One other thing of which I was not aware. Apparently this job had been scheduled successfully up until about a week ago, when it began failing.
Any further thoughts/ideas?
Check View History for the job. Don't miss to check View Step History.
Unfortunately, jobs that set up from a maintenance plan does not seem to
write very much useful information, so I'm not really expecting this to
give you anything. (But check nevertheless.) I the maintenance plan has
its own log somewhere, but I don't remember where - or if there was anything
that useful in it.
May you should scrap the plan, and set up the jobs without it.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se
Books Online for SQL Server 2005 at http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinf...ons/books.mspx
<te********@hotmail.com> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com... My client has a number of jobs that are run overnight. We've set them up to email me when they're completed. Every morning I get in to a bunch of emails like this:
<quote>
JOB RUN: 'Tech Pubs Email Notification' was run on 18/03/2006 at 00:00:00 DURATION: 0 hours, 0 minutes, 0 seconds STATUS: Succeeded MESSAGES: The job succeeded. The Job was invoked by Schedule 10 (Send Mail). The last step to run was step 1 (Send Mail). </quote>
However, the most important job - the database backup - fails every time.
<quote> JOB RUN: 'DB Backup Job for DB Maintenance Plan 'DB Maintenance Plan1'' was run on 20/03/2006 at 18:00:00 DURATION: 0 hours, 0 minutes, 2 seconds STATUS: Failed MESSAGES: The job failed. The Job was invoked by Schedule 7 (Schedule 1). The last step to run was step 1 (Step 1). </quote>
What's strange is that the job runs successfully if you kick it off manually (in EM: right-click and "Start Job")!!! Does anyone have any idea of why that might be? Where to look for diagnostic information?
TIA
Edward
If it isn't the owner of the job step (sa would be good if sa owns the
database), then check for proper disk
space in the backup destination. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Iain Hosking |
last post by:
I am running a SQL Server 2000 installation with several databases. Each
database and log is backed-up using a maintenance plan.
The scheduled maintance plan for the latest database does not run,...
|
by: Nipon |
last post by:
Hi,
A DTS package which is running fine when execute ,always fails as
scheduled job.
I read from the previous posts about MS KB article 269074, security
and MDAC, but I don't understand and...
|
by: TiredOfSpam |
last post by:
I have an ActiveX Script task in a DTS package which executes fine
within DTS.
However, if I run it as a sheduled job, it fails with a 'path not
found error'. I've cut the code down to the...
|
by: exchange |
last post by:
I'm running a VB.net exe which reads a xml document via a URL using the
XmlDocument Load method under framework 1.1. It runs correctly via a
scheduled task running as user admin who is a member of...
|
by: Neurocon |
last post by:
Hey everyone --
I've been having this problem for a couple weeks and was hoping maybe
someone can help out a little bit.
Synopsis:
This SQL agent job contains code to perform a full...
|
by: Rolf Schroedter |
last post by:
(Sorry for cross-posting).
I need to access large files > 2GByte (Linux, WinXP/NTFS)
using the standard C-library calls.
Till today I thought I know how to do it, namely for
Win32:
Use open(),...
|
by: Jim Heavey |
last post by:
Hello, I have a console application which I run from a server. When I
remotely log on to the server and sumit the application it runs just fine.
When I schedule the job and use my login ID and...
|
by: bennett |
last post by:
I'm trying to write an ASPX page that uses an OleDbDataAdapter to get
data from a SQL Server database. When I test the connection, it
returns success, and when I preview the data using the...
|
by: mayur_hirpara |
last post by:
Hi,
I am writing a VB.NET application. It is a Windows application at the
moment.
The application contains a button. the click event of button perform a
long running task.
It needs to be started...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |