Is there a way to check to see if the SQL Server Agent is running via tsql without calling xp_cmdshell or a proc that calls xp_cmdshell? I wanted to add a feature to our product to first check and see if the Agent is running before creating jobs that our application needs to do.
But the login to the application has limited security rights which would limit the ability to directly or indirectly call xp_cmdshell.
Therefore, I am looking for an alternative code to be able to check if the Agent is running.
Thanks,
Daniel