Solved

query using dmv vs dbcc memorystatus

Posted on 2011-02-20
1
982 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
1 Comment
 
LVL 17

Accepted Solution

by:
dbaSQL earned 500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how the fundamental information of how to create a table.

856 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