This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

I need to setup an alert if SQLAgent is down using a query, I have not bee able to figure it out

I want to use this query 

IF EXISTS(SELECT 1 FROM sys.dm_exec_sessions WHERE program_name = 'SQLAgent - Generic Refresher')
    SELECT 'TRUE'
ELSE
    SELECT 'FALSE'

Parents Reply Children
No Data