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.
| Author |
Topic |
|
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2011-08-22 : 09:01:07
|
| I would like to create a store procedure.If the timing on the job run is more than 1 minute, send email notification to my email address.Can this possible to be done?I have tried on the send email notification part, but I have no idea on the logic part.If time > 1 minutesend email notification |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-08-22 : 09:17:14
|
| you can do itmake use of msbd.dbo.sysjobhistory to get running job info and use sp_send_dbmail to sent notification mailplease look into books online for the syntax an usage.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2011-08-22 : 10:07:14
|
| Books online?i would just like to know how to apply on the logic part. |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|
|