July, the 31 Days of SQL Server DMO’s – Day 31 (sys.dm_server_services)

Posted by Tamarick Hill on SQL Blog See other posts from SQL Blog or by Tamarick Hill
Published on Wed, 31 Jul 2013 14:22:05 GMT Indexed on 2013/08/02 15:53 UTC
Read the original article Hit count: 440

Filed under:

The last DMV for this month long blog session is the sys.dm_server_services DMV. This DMV returns information about your SQL Server, Full-Text, and SQL Server Agent related services. To further illustrate the information this DMV contains, lets run it against our Training instance that we have been using for this blog series.

SELECT * FROM sys.dm_server_services

image

image

The first column returned by this DMV is the actual Service Name. The next columns are the startup_type and startup_type_desc columns which display your chosen method for how a particular method should be started. The next columns status and status_desc display the current status for each of your Services on the instance. The process_id column represents the server process id. The last_startup_time column gives you the last time that a particular service was started. The service_account column provides you with the name of the account that is used to control the service. The filename column gives you the full path to the executable for the service. Lastly we have the is_clustered column and the cluster_nodename which indicates whether or not a particular service is clustered and is part of a resource cluster group, and if so, the cluster node that the service is installed on.

This is a good DMV to provide you with a quick snapshot view of the current SQL Server services you have on your instance.

For more information on this DMV, please see the below Books Online link:

http://msdn.microsoft.com/en-us/library/hh204542.aspx

Follow me on Twitter @PrimeTimeDBA

© SQL Blog or respective owner