Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 SQL Job History

Author  Topic 

yakoo
Constraint Violating Yak Guru

312 Posts

Posted - 2002-09-12 : 11:15:28
Does anyone know of an extended stored procedure or a table that can be queried to retrieve job history. Or does anyone know how the job history of a sql job is displayed in the EM

Got SQL?

solart
Posting Yak Master

148 Posts

Posted - 2002-09-12 : 11:27:05
Using EM
In left pane select server
in left pane select management folder
in left pane select SQL Server agent
in left pane select jobs
in right pane select job you are interested in
right click job
select view job history

solart
Go to Top of Page

yakoo
Constraint Violating Yak Guru

312 Posts

Posted - 2002-09-12 : 11:37:57
I know you can do that, but you have to do it manually. Is there any way to query that data from a table? Where does EM retrieve that information from?

I know there is an extended stored procedure (xp_sqlagent_enum_jobs) that will give you a list of the jobs and some basic information on them. I just need to be able to determine, with a query, the job history (more specifically if a job faild).

Got SQL?

Edited by - yakoo on 09/12/2002 11:38:55
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-09-12 : 11:45:18
How about...sp_help_jobhistory????

It's AMAZING what you can find in Books Online...

Edited by - robvolk on 09/12/2002 11:49:46
Go to Top of Page

yakoo
Constraint Violating Yak Guru

312 Posts

Posted - 2002-09-12 : 11:59:19
Your right nr...
I should have went straight to BOL. What was I thinking (Smack...)



Got SQL?
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-09-12 : 11:59:58
nr?

Go to Top of Page

yakoo
Constraint Violating Yak Guru

312 Posts

Posted - 2002-09-12 : 12:17:57
seems like I can't even read today.

Got SQL?
Go to Top of Page
   

- Advertisement -