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 16447 te********@hotm ail.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********@hotm ail.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********@hot mail.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****@sommarsk og.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********@hot mail.com> wrote in message
news:11******** **************@ z34g2000cwc.goo glegroups.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, but
displays no error. There is no entry in the job history. The same thing
happens when I try to run the individual jobs from Enterprise Manager.
I've checked the database recovery model (full), the location of the backup
files (same as the...
|
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 don't know how to solve it.
Please help.
|
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 approriate problem and
posted it here, it just makes a simple text file with a name derived
from the current date and time and puts 'Hello World' in the file
although in reality I go on to make an xml file. (make sure your path
exists before you execute...
|
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 the administrators
group. However if I change the scheduled task to run as another user who is
also a member of the administrators group it fails on the xml load with
"The underlying connection was closed: Unable to connect to the remote...
|
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 database backup with
verification and is writing to a local disk array. I typically also use
some code for reporting - declaring variables and inserting them into
| |
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(), read(), _itelli64(), _lseeki64() with type __int64
Linux/Cygwin:
#define _FILE_OFFSET_BITS 64
Use open(), read(), lseek() with type off_t
|
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 password, the job fails when
it attempts to access a shared drive. I'm not sure why. There must be some
difference which being experience for this mapped drive when I am directly
logged on vs. when the scheduled job runs.
On the server, I have a...
|
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 Adapter's
"preview data" right-click option, it works, but when I load the actual
page, I get the error "Cannot open database requested in login
'cookiecutter'. Login fails."
It seems to work when I use a pre-existing database like Northwind or...
|
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 windows task scheduler to carry out some
operation.
When I am testing the application I want to differentiate if the
"differentiate between a program launched manually and launched by a
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |