Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 426

DMV in SQL Server is a catch-all term for Database Management Views [& Functions]. Technically they are all now DMOs (Database Management Objects) however the term DMV is still widely understood and accepted by most.

11 votes
Accepted

Setting READ UNCOMMITTED when reading DMVs

As one of the guys writes demo DMV queries that way, I'll explain why. Does it matter if you're only querying DMVs? No. … But sooner or later, you're going to take one of your DMV scripts and tack on a join to sys.databases or sys.tables or some other system object in order to get more information about what you're looking …
Brent Ozar's user avatar
  • 43.2k
6 votes

Is there DMV for seeing view access count?

No, but what the presenter was probably doing was using Grant Fritchey's technique to search the plan cache for a string. You can search the plan cache for your view name. That technique has a few dr …
Brent Ozar's user avatar
  • 43.2k
5 votes
Accepted

Why are these two HADR DMVs reporting different states?

Here's the Connect item on one of the bugs we've run into where that DMV stops refreshing - note in the comments that log_send_queue_size in the DMV sys.dm_hadr_database_replica_states shows 0 even when …
Brent Ozar's user avatar
  • 43.2k
0 votes

Resource Pool Stats Counter Reporting Zero

You posted a bug on this at Microsoft Connect: SQL Server 2016 SQLServer:Resource Pool Stats:CPU usage target % Always Returns Zero - by HunterX3 Given that Microsoft didn't respond there either, it …
Brent Ozar's user avatar
  • 43.2k
5 votes

Poor Performance Running dm_exec_query_stats

Nick Craver ran into performance issues with this too in Opserver. Here's the query he ended up with after working directly with MS folks on the query plan - the joins look kinda contorted, but as I r …
Brent Ozar's user avatar
  • 43.2k
2 votes

Centralized Logs (error, deadlocks, slow queries) For SQL Servers

You're asking a few different questions: Where can I find errors? Deadlocks? Slow queries? Each of these is its own question, each with separate answers. SQL Server doesn't store those three separat …
Brent Ozar's user avatar
  • 43.2k
13 votes
Accepted

CPU Usage Incorrect in sys.dm_os_ring_buffers

Microsoft says that DMV (ring buffers) doesn't work on SQL Server 2017, only 2019: Sys.dm_os_ring_buffers DMV has been a key DMV used for monitoring SQL Server by built-in tools as well as third … When SQL Server 2017 was released on Linux, unfortunately this DMV did not return correct CPU usage information by SQL Server process. …
Brent Ozar's user avatar
  • 43.2k