473,480 Members | 2268 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

sql server backup job timeout

We use db maintenance plans for backup os sql server. We would like to
send an alert if the backup job runs for long time(over 3 hours). How
could we achieve this using maintenance plan? Retry time would not help
in this situation. Any ideas?

Jul 23 '05 #1
1 3282
I don't believe there's anything built into the maintenance plan
functionality, so you would have to implement something yourself. You
could create a proc which uses sp_help_job and/or the
sysjobs/sysjobsteps table to see how long your jobs have been running
for, then raise an error or send an email. You can schedule your proc
to run every few minutes, or whatever interval is best for your
environment.

Alternatively, if you prefer an external script in Perl/C#/whatever,
the SQLDMO Job object exposes the CurrentRunStatus and LastRunDate
properties (and you can still schedule a script from MSSQL, of course).

Simon

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2581
by: Jan Buchwald | last post by:
Hallo Ng, folgendes Problem: Ich habe eine MySQL-Datenbank und verwalte sie normalerweise mit phpMyadmin. Leider kommt es zu Timeouts bei groesseren Datenmengen, unabhängig ob ich den Output...
0
2035
by: Mark Townsend | last post by:
Following is a summary of articles spanning a 7 day period, beginning at 23 Feb 2004 05:29:19 GMT and ending at 01 Mar 2004 04:12:14 GMT. Notes ===== - A line in the body of a post is...
6
2064
by: Christine Wolak | last post by:
I'm looking for assistance on a problem with SQL Server. We have a database where a particular query returns about 3000 rows. This query takes about 2 minutes on most machines, which is fine in...
5
2408
by: shenanwei | last post by:
I have a primary server and backup server located in different physical sites. The primary server is live and ship logs to backup site every 5 minutes. The primary server is being full online...
7
2445
by: manobas | last post by:
I am getting -911 on online incremental or delta backup , anybody have any explanation, backups go to tsm. thanks
13
2360
by: gavino | last post by:
This seems easy but I have been asking tcl and python IRC chat all day and no one gave an answer. I have 100 servers which need a new backup server added to a text file, and then the backup agent...
1
2243
by: mike_dba | last post by:
I am looking for some insight into a backup problem for an online database backup performed each night on my Linux Instance (SuSe 9 kernel 2.6) of DB2 DPF 8.2. The backup is initiated using a...
5
2272
by: andrejf | last post by:
Occasionally, regular online backup fails with sql0911 reason 68, "lock-timeout" seconds after the command is issued. Normally a second try is successfull. The database is always in use. Can...
0
3688
by: DMT012 | last post by:
Hello. Occasionally on my production server when I run an automated script to restore a database from a backup it hangs and the database is put in restoring mode and just stays there, requiring me...
0
7054
marktang
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,...
0
6918
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...
0
7057
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7102
jinu1996
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...
0
5357
agi2029
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,...
0
3000
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1310
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 ...
1
570
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
199
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.