'dirtypage'에 해당되는 글 1건

  1. DirtyPage DMV

DirtyPage DMV

Bufferpool 영역에서 dirty page 정보를 확인할 수 있는 DMV.

SET NOCOUNT ON;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

-- http://www.sqlskills.com/BLOGS/PAUL/post/Inside-the-Storage-Engine-Whats-in-the-buffer-pool.aspx

select sysObj.name,
(CASE WHEN ([is_modified] = 1) THEN 'Dirty' ELSE 'Clean' END) AS 'Page State',
* 
from sys.dm_os_buffer_descriptors bufferDescriptors
INNER JOIN sys.allocation_units AllocUnits ON bufferDescriptors.allocation_unit_id = AllocUnits.allocation_unit_id
INNER JOIN sys.partitions Partitions ON AllocUnits.container_id = Partitions.hobt_id
INNER JOIN sys.objects sysObj ON Partitions.object_id = sysObj.object_id
WHERE bufferDescriptors.database_id = DB_ID()
AND sysObj.is_ms_shipped = 0		-- ##. 개체가 내부 SQL Server 구성 요소로 만들어집니다.
go	


'Transact-SQL' 카테고리의 다른 글

Suspect page 검사하기  (0) 2012.11.15
SQL Dump 파일 확인  (1) 2012.10.18
relog 사용 방법  (0) 2012.09.28
UPDLOCK  (0) 2012.09.20
group by 빨리 처리하기  (0) 2012.09.11