[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

query using dmv vs dbcc memorystatus

Posted on 2011-02-20
1
Medium Priority
?
1,003 Views
Last Modified: 2012-08-13
I use to run dbcc memorystatus to show me below results, But how do I have same collection via DMV in sql2005 or sql2008 ?

Buffer Distribution            Buffers
------------------------------ -----------
Stolen                         4560
Free                           140
Cached                         109863
Database (clean)               664900
Database (dirty)               6969
I/O                            0
Latched                        0

(7 row(s) affected)

Buffer Counts                  Buffers
------------------------------ --------------------
Committed                      786432
Target                         786432
Hashed                         671869
Stolen Potential               69922
External Reservation           0
Min Free                       256
Visible                        194048
Available Paging File          1815943

(8 row(s) affected)

Procedure Cache                Value
------------------------------ -----------
TotalProcs                     7402
TotalPages                     105141
InUsePages                     31

(3 row(s) affected)
0
Comment
Question by:motioneye
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 17

Accepted Solution

by:
dbaSQL earned 2000 total points
ID: 34940522
I'm not sure about the output you've posted, but check these two out for your buffer details:
http://www.sqlservercentral.com/blogs/glennberry/archive/2010/04/30/a-dmv-a-day-_1320_-day-30.aspx
http://www.mssqltips.com/tip.asp?tip=2194

And you can use sys.dm_exec_procedure_stats for your procedure cache stats. These are both very good references:  http://www.simple-talk.com/content/print.aspx?article=1215
http://www.sqlservercentral.com/blogs/glennberry/archive/2010/04/10/a-dmv-a-day-_1320_-day-10.aspx

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question