Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Send an email when a Job finishes?
Wed, Jul 17 2019 6:11 PMPermanent Link

Ian Branch

Avatar

Hi Team,
I have a backup Job that runs on the EDBServer every day at 0430.
The Customer has asked if I/it can send an email when the Job finishes.  Preferably indicating success or failure.
I can't see any way this can happen as it is just SQL running on the EDBServer.
Anybody got any contrary thoughts?

Regards,
Ian
Thu, Jul 18 2019 3:39 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Ian

>I have a backup Job that runs on the EDBServer every day at 0430.
>The Customer has asked if I/it can send an email when the Job finishes. Preferably indicating success or failure.
>I can't see any way this can happen as it is just SQL running on the EDBServer.
>Anybody got any contrary thoughts?

If cheating is allowed you can use ElevateDB's ability to define functions - you'll need to write it in Delphi rather than SQL but so that it can be called as an SQL routine. Then you add a line at the end of your job along the lines of

SELECT MyEMailFunction(CURRENT_TIME) FROM sometableorother

Roy
Thu, Jul 18 2019 1:37 PMPermanent Link

Ian Branch

Avatar

Thanks Roy,
Cheating is always allowed if it gets the job done. Smile
I will have a look at your suggestion.
Regards,
Ian
Image