{"id":82013,"date":"2007-07-10T00:14:00","date_gmt":"2007-07-10T00:14:00","guid":{"rendered":"https:\/\/www.webstaging.red-gate.com\/simple-talk\/?p=73151"},"modified":"2018-12-12T13:42:42","modified_gmt":"2018-12-12T13:42:42","slug":"blogging-the-dmvs","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/blogging-the-dmvs\/","title":{"rendered":"Blogging the DMV&#8217;s"},"content":{"rendered":"<p><P>Well, I am working on a project that is going to be a book on dynamic management views (and functions, but DMF is an interesting acronym, and objects, as in DMO, has a well known other meaning.&nbsp; What I will post will be one object in the following format:<\/P> <P><STRONG>Name of object<\/STRONG><\/P> <P><STRONG>Type:<\/STRONG> Function or View<\/P> <P><STRONG>Parameters: <\/STRONG>If it is a function<\/P> <P><STRONG>Scope: <\/STRONG>Really denotes how long the data&#8217;s life is for.&nbsp; Many of the dynamic management functions are used to record some event, like an index being use for a query.&nbsp; There is not usually (well, I haven&#8217;t finished cataloging them, but so far there is never) any way to reset the values without rebooting the server.&nbsp; There are tools to use to mitigate the issue, (like Tom Davidson&#8217;s DMVStats tool that&nbsp;Kalen mentions <A href=\"http:\/\/sqlblog.com\/blogs\/kalen_delaney\/archive\/2007\/06\/29\/check-it-out-tom-davidson-s-dmvstats-tool-is-now-available.aspx\" target=\"_blank\">here<\/A>,)&nbsp;but the first time you look at the data in these objects it will be a bit confusing if you don&#8217;t know how long the data has been gathered.<\/P> <P><STRONG>Columns: <\/STRONG>A listing for all of the columns that are output by the DMV, including a description<\/P> <P><STRONG>Example Usage: <\/STRONG>A query or two regarding possible uses<\/P> <P>Then finally, there will be a section of the book that has&nbsp;a list of ways you can use the DMV&#8217;s to diagnose common things about your server.<\/P> <P>The book will be very reasonably priced (or not priced) and you will hear more about that over the next few weeks.&nbsp; What I am asking of you (and you over there to the left) is&nbsp;for your comments\/likes, dislikes, and especially query ideas.&nbsp; I will include your query in the book&nbsp;(or coalesce it with others) and everyone who comments constructively will be mentioned in the acknowledgements of the book.&nbsp; I will also include any links you might have to DMV related queries in the Bibliography (which already has 16 items in it from just getting started.)<\/P> <P>I will be posting these to my <A title=\"http:\/\/sqlblog.com\/blogs\/louis_davidson\/default.aspx\" href=\"http:\/\/sqlblog.com\/blogs\/louis_davidson\/default.aspx\">http:\/\/sqlblog.com\/blogs\/louis_davidson\/default.aspx<\/A>&nbsp;site only, since comments there can be entered without a passport.&nbsp; I will make mention of it on my <A href=\"http:\/\/drsql.spaces.live.com\/\">http:\/\/drsql.spaces.live.com<\/A>&nbsp;blog and provide more loose commentary about the writing process.&nbsp; <\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, I am working on a project that is going to be a book on dynamic management views (and functions, but DMF is an interesting acronym, and objects, as in DMO, has a well known other meaning.&nbsp; What I will post will be one object in the following format: Name of object Type: Function or&#8230;&hellip;<\/p>\n","protected":false},"author":56085,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"coauthors":[19684],"class_list":["post-82013","post","type-post","status-publish","format-standard","hentry","category-blogs"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/82013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/56085"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=82013"}],"version-history":[{"count":1,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/82013\/revisions"}],"predecessor-version":[{"id":82387,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/82013\/revisions\/82387"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=82013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=82013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=82013"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=82013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}