Answered by:
Service Details On Local & Remote Machines

Question
-
Hello Forum
Is there a way to get the following information for the SQL Server Services in a domain: -
- Host Name
- Service Name (E.g, SQL Server, SQL Server Agent etc)
- Instance Name
- Startup Account
- Startup Type (Automatic, manual etc)
- Status (Running/Stopped)
We're wanting to grab this information and store it in a Table.
Please click "Mark As Answer" if my post helped. Tony C.
- Edited by Anthony C-UK Monday, October 10, 2016 11:24 AM Added host name
Monday, October 10, 2016 11:01 AM
Answers
-
Hello Anthony,
One easy way is to utilize PowerShell, you can find a small script here: Check SQL Server related services on several machines
Or a bit more complex: Create Inventory of SQL Server in Network as Html
Olaf Helper
[ Blog] [ Xing] [ MVP]- Marked as answer by Anthony C-UK Monday, October 10, 2016 11:49 AM
Monday, October 10, 2016 11:42 AM
All replies
-
Check this:
select * from sys.dm_server_services
Please click "Mark As Answer" if my post helped. Vijay.
Monday, October 10, 2016 11:19 AM -
This will only work if the Service is up and running, is there a way to get the information from the Operating System?
Please click "Mark As Answer" if my post helped. Tony C.
Monday, October 10, 2016 11:23 AM -
Hello Anthony,
One easy way is to utilize PowerShell, you can find a small script here: Check SQL Server related services on several machines
Or a bit more complex: Create Inventory of SQL Server in Network as Html
Olaf Helper
[ Blog] [ Xing] [ MVP]- Marked as answer by Anthony C-UK Monday, October 10, 2016 11:49 AM
Monday, October 10, 2016 11:42 AM -
Thanks Olaf; looks like this will give us just what we need.
Please click "Mark As Answer" if my post helped. Tony C.
Monday, October 10, 2016 11:50 AM