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 2005 Forums
 Transact-SQL (2005)
 Daily Job history

Author  Topic 

PatDeV
Posting Yak Master

197 Posts

Posted - 2007-05-18 : 16:28:26
Hi,

all how can i get daily job history in my mail everyday!!
I tried using alert but could not make it to work!!

thanks
Pat

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-05-18 : 16:32:37
Did you enable db mail or sql mail?
Go to Top of Page

PatDeV
Posting Yak Master

197 Posts

Posted - 2007-05-18 : 16:50:21
yes i have. and have set up notification to send email if job fails!! but need like report for job for whole day and duration and status!!
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2007-05-18 : 21:54:18
You will need to write a query against the jobs tables in the msdb database, and setup a job to email you the query results.

These are the job tables in msdb:
sysjobs
sysjobschedules
sysjobservers
sysjobsteps
sysjobhistory

You can refer to SQL Server Books Online to get information on these tables.




CODO ERGO SUM
Go to Top of Page
   

- Advertisement -