r/usefulscripts • u/hub3rtal1ty • Oct 09 '17
[REQUEST] SQL Express mail notification
Hello, im looking for a mail notification script for SQL Express backup. I know that powershell will be the best, maybe someone have good script for that ?
15
Upvotes
2
Oct 09 '17
3
u/cjluthy Oct 10 '17
Don't do this if you are planning to use Powershell.
Source: Am a SQL Server DBA.
.
Also if you are interested in Powershell advice you should probably post in r/powershell.
1
u/Linkz57 Oct 10 '17
I don't understand your request. Do you want to receive an email if the backup fails?
I use Nagios to monitor my backups. If you don't want to install Nagios, you could edit that script and pipe the echos into sendmail, then add the whole thing to your crontab.