2

How can I determine from code, if SQL Server Agent is running - using SMO?

I would think there was a property on the JobServer class, but I can't find anything.

Powershell is not an option.

Kjensen
  • 12,022
  • 35
  • 101
  • 158

1 Answers1

2

Check if windows service (SQL Server Agent) is running...

garik
  • 5,554
  • 4
  • 29
  • 40
  • 1
    Of course! Found the code for doing that here: http://stackoverflow.com/questions/178147/how-can-i-verify-if-a-windows-service-is-running – Kjensen Aug 04 '10 at 11:29