April 15, 2015 at 10:23 am
Quick thought, how about cmd net start and parse the output?
😎
April 15, 2015 at 11:00 am
I don't want to start anything, just trying to get info. I'd like to stay with a SQL query.
There is an exception to every rule, except this one...
April 15, 2015 at 11:05 am
SQLHeap (4/15/2015)
I don't want to start anything, just trying to get info. I'd like to stay with a SQL query.
without any parameters it only lists the services, should be easy to parse the output.
😎
April 15, 2015 at 11:19 am
That lists out the services yes, but I'm looking for the account that the SQL services are running under.
There is an exception to every rule, except this one...
April 15, 2015 at 12:43 pm
April 15, 2015 at 1:32 pm
Just ran your code on a multi instance box (10 running and 4 not running), all showing up in the results, could this be a permission issue?
😎
BTW: the services not running show up with NULLs in SQLServiceAcct and SQLAgentAcct.
April 15, 2015 at 5:57 pm
GRRRR, doesn't work for me at home either:crazy:
There is an exception to every rule, except this one...
Viewing 7 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply