xp_serviceControl
Wow, I just found this extended sproc tonight. I’m pretty estatic about it! xp_servicecontrol allows you to query the status of a windows service. In the past, I’ve used the ’sc query ‘ via a cmdline. Now I can do it without having to open up a cmd prompt.
xp_serviceControl querystate, MSSQLSERVER
Other [...]