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
  • 11,451
  • 33
  • 95
  • 150

1 Answers1

2

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

garik
  • 5,485
  • 4
  • 28
  • 39
  • 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