Solved

query using dmv vs dbcc memorystatus

Posted on 2011-02-20
1
946 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now