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
↧