dbTalk Databases Forums  

Access to SQL Server Agent Job Log History

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Access to SQL Server Agent Job Log History in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chet Cromer
 
Posts: n/a

Default Access to SQL Server Agent Job Log History - 02-12-2004 , 12:53 PM






Is there a table that I can access through a query that will allow me to
look up the job log history of jobs run by the SQL Server Agent? I have a
DTS package that runs nightly (via a job) and would like to create a query
to pull success/fail information from the job history.

Thanks,

Chet



Reply With Quote
  #2  
Old   
Chet Cromer
 
Posts: n/a

Default Re: Access to SQL Server Agent Job Log History - 02-12-2004 , 01:00 PM






Found the answer to my own question:

EXEC sp_help_jobhistory NULL, 'Job Name'

If this is stored in a table I'd still like any info on how to access it
using a SELECT statement.

Thanks.

"Chet Cromer" <chetsjunkATccrtc.com> wrote

Quote:
Is there a table that I can access through a query that will allow me to
look up the job log history of jobs run by the SQL Server Agent? I have a
DTS package that runs nightly (via a job) and would like to create a query
to pull success/fail information from the job history.

Thanks,

Chet





Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Access to SQL Server Agent Job Log History - 02-13-2004 , 01:55 AM



Easiest way to find out is to do

Use MSDB
Go
Exec sp_helptext 'sp_help_jobhistory'


--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Chet Cromer" <chetsjunkATccrtc.com> wrote

Quote:
Found the answer to my own question:

EXEC sp_help_jobhistory NULL, 'Job Name'

If this is stored in a table I'd still like any info on how to access it
using a SELECT statement.

Thanks.

"Chet Cromer" <chetsjunkATccrtc.com> wrote in message
news:eU$24lZ8DHA.1428 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Is there a table that I can access through a query that will allow me to
look up the job log history of jobs run by the SQL Server Agent? I have
a
DTS package that runs nightly (via a job) and would like to create a
query
to pull success/fail information from the job history.

Thanks,

Chet







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.