Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Autoalert if SQLAgent stops

$
0
0
Typed in services.mscSelect SQLAgent->Properties->Recovery->Under First Failure select - >Run a ProgramUnder program ->Path to the powershell executableUnder command ->-Command 'Send-MailMessage -To abcd@abcd.org -Subject \"SQLAgent on ABCDSERVER Stopped\" -Body \"Please check\" -SmtpServer smtp.abcd.org -From EFGHIJ@defg.org'I am trying to setup autoalerting in case the sqlagent stops.The above process is not working.Can anybody please help find the issue.Thanks

Viewing all articles
Browse latest Browse all 467

Trending Articles