Solved

query using dmv vs dbcc memorystatus

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

920 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

17 Experts available now in Live!

Get 1:1 Help Now