<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQLOS Team : dm_server_registry, dm_server_services, dm_server_memory_dumps</title><link>http://sqlblog.com/blogs/sqlos_team/archive/tags/dm_5F00_server_5F00_registry/dm_5F00_server_5F00_services/dm_5F00_server_5F00_memory_5F00_dumps/default.aspx</link><description>Tags: dm_server_registry, dm_server_services, dm_server_memory_dumps</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>More on DMV changes in SQL 2008 R2 SP1</title><link>http://sqlblog.com/blogs/sqlos_team/archive/2011/05/11/more-on-dmv-changes-in-sql-2008-r2-sp1.aspx</link><pubDate>Thu, 12 May 2011 00:46:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:35567</guid><dc:creator>SQLOS Team</dc:creator><slash:comments>1</slash:comments><comments>http://sqlblog.com/blogs/sqlos_team/comments/35567.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/sqlos_team/commentrss.aspx?PostID=35567</wfw:commentRss><description>&lt;p&gt;Following our last post by Mehmet about new support and troubleshooting DMV&amp;rsquo;s, here are additional details on supportability DMV changes in SQL 2008 R2 SP1 and how you might use them. These changes are also available in &amp;ldquo;Denali&amp;rdquo;, the upcoming major release of SQL Server. With SQL 2008 R2 SP1 coming up soon, please give them a try and let us know what you think.&lt;/p&gt;
&lt;p&gt;We&amp;rsquo;ll take a peek at these DMV changes as well as talk about in what circumstances these DMVs would come in handy. Note that all DMVs/DMF documented below require VIEW SERVER STATE permission. &lt;/p&gt;
&lt;p&gt;1. Extended sys.dm_exec_query_stats with 4 new columns (total/last/min/max_row)&lt;/p&gt;
&lt;p&gt;sys.dm_exec_query_stats is a very widely used DMV that provides&amp;nbsp; useful information in analyzing query performance. To troubleshoot long running queries, it is also helpful to have total/min/max/last row counts information in order to separate queries that are simply returning a large number of rows from those problematic ones due to, say, a missing index or &amp;nbsp;a bad query plan. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;2. sys.dm_os_volume_stats(f.database_id, f.file_id)&lt;/p&gt;
&lt;p&gt;This is a new DMF (Dynamic Management Function) that helps check the free space on the partitions the SQL server instance resides on. The catalog view sys.database_files provides stats such as size per database file, however, without information about free space on the partition, the information is less actionable &amp;ndash; a database file cannot autogrow even when the size is small if there is not sufficient space left on the partition. &lt;/p&gt;
&lt;p&gt;For example, you can use the following T-SQL statements to get the stats for the current database.&lt;/p&gt;
&lt;p&gt;select database_id, f.file_id, total_bytes, available_bytes from sys.database_files as f cross apply sys.dm_os_volume_stats(DB_ID(), f.file_id) &lt;/p&gt;
&lt;p&gt;DMF definition:&lt;/p&gt;
&lt;table cellpadding="0" cellspacing="0" style="width:500px;"&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;Column&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;Type&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;database_id&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;int, not null&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;ID of the database&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;file_id&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;int, not null&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;ID of the file&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;volume_mount_point&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar(512)&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Mount point at which the volume is rooted&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;volume_id&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar(512)&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;OS volume ID&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;logical_volume_name&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar(512)&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Logical volume name&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;file_system_type&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar(512)&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Type of file system volume (e.g., NTFS, FAT, RAW)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;total_bytes&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bigint&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Total size in bytes of the volume&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;available_bytes&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bigint&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Available free space on the volume&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;supports_compression&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bit&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Does this volume support OS compression?&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;supports_alternate_streams&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bit&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Does this volume support alternate streams&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;supports_sparse_files&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bit&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Does this volume support sparse files?&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;is_read_only&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bit&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Is this volume currently marked read_only?&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;is_compressed&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bit&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Is this volume currently compressed?&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;p&gt;3. sys.dm_os_windows_info&lt;/p&gt;
&lt;p&gt;This new DMV provides information on the OS the SQL Server instance is running on, specifically including the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Windows Release&lt;/li&gt;
&lt;li&gt;Windows Service Pack Level&lt;/li&gt;
&lt;li&gt;Windows SKU&lt;/li&gt;
&lt;li&gt;OS language version&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;DMV definition:&lt;/p&gt;
&lt;table cellpadding="0" cellspacing="0"&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;Column name&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;Column type&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;windows_release&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar (256)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;windows_service_pack_level&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar(256)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;windows_sku&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;int&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;os_language_version&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;int&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;p&gt;&amp;nbsp;Without this DMV, it is very difficult to get such information without calling into Windows APIs.&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s also worth pointing out that a related change we made to existing DMV sys.dm_os_sys_info is to add two new columns (virtual_machine_type, virtual_machine_type_desc) to provide information when the SQL Server instance is running in a virtual machine environment.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;4. sys.dm_server_registry&lt;/p&gt;
&lt;p&gt;This DMV provides registry key information related to the overall configuration/installation of the SQL Server instance. &lt;/p&gt;
&lt;p&gt;DMV definition:&lt;/p&gt;
&lt;table cellpadding="0" cellspacing="0"&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;Column name&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;Column type&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;registry_key&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar (256)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;value_name&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Nvarchar (256)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;value_data&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;sql_variant&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;p&gt;&amp;nbsp;The following groups of registry keys are covered in this DMV:&lt;/p&gt;
&lt;p&gt;1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To help find out what SQL Server services are available on the host machine&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;HKLM\SYSTEM\CurrentControlSet\Services\MSSQLServer\ObjectName&lt;/li&gt;
&lt;li&gt;HKLM\SYSTEM\CurrentControlSet\Services\MSSQLServer\ImagePath&lt;/li&gt;
&lt;li&gt;HKLM\SYSTEM\CurrentControlSet\Services\MSSQLServer\Start&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To help find out what SQL Agent services are available on the host machine&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;HKLM\SYSTEM\CurrentControlSet\Services\SQLSERVERAGENT\ObjectName&lt;/li&gt;
&lt;li&gt;HKLM\SYSTEM\CurrentControlSet\Services\SQLSERVERAGENT\ImagePath&lt;/li&gt;
&lt;li&gt;HKLM\SYSTEM\CurrentControlSet\Services\ SQLSERVERAGENT\Start&lt;/li&gt;
&lt;li&gt;HKLM\SYSTEM\CurrentControlSet\Services\ SQLSERVERAGENT\DependOnService&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To find out the current version of SQL Engine&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLxx.MSSQLSERVER\ MSSQLServer\ CurrentVersion&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To help with instance detectability, etc. the following registry keys are helpful &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLxx.MSSQLSERVER\ MSSQLServer\ Parameters&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;5)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To help troubleshoot connectivity issues (intermittent connections, high latency, etc.) that may be a result of misconfiguration&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLxx.MSSQLSERVER\ MSSQLServer\ SuperSocketNetLib\ AdminConnection\TCP&lt;/li&gt;
&lt;li&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLxx.MSSQLSERVER\ MSSQLServer\ SuperSocketNetLib\ Np&lt;/li&gt;
&lt;li&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLxx.MSSQLSERVER\ MSSQLServer\ SuperSocketNetLib\ Sm&lt;/li&gt;
&lt;li&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLxx.MSSQLSERVER\ MSSQLServer\ SuperSocketNetLib\ TCP\ IP1&amp;hellip; IPAll&lt;/li&gt;
&lt;li&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLxx.MSSQLSERVER\ MSSQLServer\ SuperSocketNetLib\ Via&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;6)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To help troubleshoot application issues due to incorrect settings in SQLServerAgent&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLxx.MSSQLSERVER\ SQLServerAgent\ErrorLoggingLevel&lt;/li&gt;
&lt;li&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLxx.MSSQLSERVER\ SQLServerAgent\JobHistoryMaxRows&lt;/li&gt;
&lt;li&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLxx.MSSQLSERVER\ SQLServerAgent\JobHistoryMaxRowsPerJob&lt;/li&gt;
&lt;li&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQLxx.MSSQLSERVER\ SQLServerAgent\WorkingDirectory&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;5. sys.dm_server_services &lt;/p&gt;
&lt;p&gt;This DMV provides information about three services related to SQL Server, namely SQL Server, SQL Agent and Fulltext (only available as of Denali). The DMV includes the following information about the current SQL instance:&lt;/p&gt;
&lt;table cellpadding="0" cellspacing="0"&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;Column name&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;Column type&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;service&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar (256)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;startup_type&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;int&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;startup_type_desc&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar(256)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;status&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;int&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;status_desc&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar(256)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;process_id&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar (256)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;last_startup_time&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;datetimeoffset&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;service_account&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar (256)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;filename&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar (256)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;is_clustered&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nchar&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;cluster_nodename&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar (256)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;p&gt;6. sys.dm_server_memory_dumps&lt;/p&gt;
&lt;p&gt;This DMV provides information on memory dumps that have been generated as a result of a recent crash, for instance. Dump type may be minidump, all-thread dump or full dump.&lt;/p&gt;
&lt;p&gt;DMV definition:&lt;/p&gt;
&lt;table cellpadding="0" cellspacing="0"&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;Column name&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;Column type&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;filename&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;nvarchar (256)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;size_in_bytes&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bigint&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;creation_time&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;datetimeoffset&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for reading this far. We&amp;rsquo;d love to hear your feedback once you get a chance to try them out.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Xin Jin&lt;/p&gt;
Originally posted at http://blogs.msdn.com/b/sqlosteam/&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=35567" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/sqlos_team/archive/tags/dm_5F00_server_5F00_services/default.aspx">dm_server_services</category><category domain="http://sqlblog.com/blogs/sqlos_team/archive/tags/dm_5F00_server_5F00_registry/default.aspx">dm_server_registry</category><category domain="http://sqlblog.com/blogs/sqlos_team/archive/tags/dm_5F00_server_5F00_memory_5F00_dumps/default.aspx">dm_server_memory_dumps</category><category domain="http://sqlblog.com/blogs/sqlos_team/archive/tags/DMV/default.aspx">DMV</category></item><item><title>New DMVs in Denali</title><link>http://sqlblog.com/blogs/sqlos_team/archive/2011/05/05/new-dmvs-in-denali.aspx</link><pubDate>Thu, 05 May 2011 18:41:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:35492</guid><dc:creator>SQLOS Team</dc:creator><slash:comments>2</slash:comments><comments>http://sqlblog.com/blogs/sqlos_team/comments/35492.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/sqlos_team/commentrss.aspx?PostID=35492</wfw:commentRss><description>&lt;p&gt;This article is about some of the new DMV&amp;rsquo;s that are newly added to next version of SQL Server. These are also available SQL Server 2008 R2 SP1. They are very helpful to get information about the host operating system that the SQL Server runs on, status of the server and even the memory dumps that are created by the server and registry keys that the server uses.&lt;/p&gt;
&lt;p&gt;To read all mentioned DMV&amp;rsquo;s the user must have VIEW SERVER STATE permission. &lt;/p&gt;
&lt;p&gt;&lt;b&gt;sys.dm_os_windows_info&lt;/b&gt;:&amp;nbsp; This DMV returns the OS related information to the user. It is good to know the properties of hosting server.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Columns:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;windows_release: &lt;/li&gt;
&lt;li&gt;windows_service_pack&lt;/li&gt;
&lt;li&gt;windows_sku&lt;/li&gt;
&lt;li&gt;os_language_version&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;b&gt;sys.dm_server_registry:&amp;nbsp; &lt;/b&gt;This DMV returns some of the registry keys that the server uses. &lt;/p&gt;
&lt;p&gt;&lt;b&gt;Columns:&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;registry key&lt;/li&gt;
&lt;li&gt;value_name&lt;/li&gt;
&lt;li&gt;value_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;sys.dm_server_services:&lt;/strong&gt; This DMV provides useful information about the SQL Server, SQL Agent and SQL FullText service related with the running server. This DMV is very helpful to track the servers status and startup configuration.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Columns:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;service_name&lt;/li&gt;
&lt;li&gt;startup type&lt;/li&gt;
&lt;li&gt;startup_type_desc&lt;/li&gt;
&lt;li&gt;status&lt;/li&gt;
&lt;li&gt;status_type_desc&lt;/li&gt;
&lt;li&gt;process_id&lt;/li&gt;
&lt;li&gt;last_startup_time&lt;/li&gt;
&lt;li&gt;service_account&lt;/li&gt;
&lt;li&gt;filename&lt;/li&gt;
&lt;li&gt;is_clustered&lt;/li&gt;
&lt;li&gt;cluster_nodename&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;b&gt;sys.dm_server_memory_dumps: &lt;/b&gt;This DMV returns the dumps that are generated by the server.&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Columns:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;filename:&lt;/li&gt;
&lt;li&gt;size_in_bytes&lt;/li&gt;
&lt;li&gt;creation_time&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;If you need more detailed information on any of those, please reply to this post or send email&lt;/p&gt;
Originally posted at http://blogs.msdn.com/b/sqlosteam/&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=35492" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/sqlos_team/archive/tags/dm_5F00_server_5F00_services/default.aspx">dm_server_services</category><category domain="http://sqlblog.com/blogs/sqlos_team/archive/tags/dm_5F00_os_5F00_windows_5F00_info/default.aspx">dm_os_windows_info</category><category domain="http://sqlblog.com/blogs/sqlos_team/archive/tags/dm_5F00_server_5F00_registry/default.aspx">dm_server_registry</category><category domain="http://sqlblog.com/blogs/sqlos_team/archive/tags/dm_5F00_server_5F00_memory_5F00_dumps/default.aspx">dm_server_memory_dumps</category></item></channel></rss>