기본 콘텐츠로 건너뛰기

MSSQL TABLE당 사이즈 구하기 (sql server table size statistics)


SELECT CONVERT(VARCHAR(30), MIN(O.NAME)) AS T_NAME
,LTRIM(STR(SUM(RESERVED) * 8192.0 / 1024.0, 15, 0) + ' KB') AS T_SIZE
FROM SYSINDEXES I
INNER JOIN SYSOBJECTS O ON O.ID = I.ID
WHERE I.INDID IN (0, 1, 255)
AND O.XTYPE='U'
GROUP BY I.ID
ORDER BY SUM(RESERVED) * 8192.0 / 1024.0 DESC
--ORDER BY T_NAME

댓글

이 블로그의 인기 게시물

div 양분하기 (Two Column Layout)

float:left를 활용한 div 둘로 나누기 [html]     <div class="content_wrap">            <div class="content-list">List</div>            <div class="content-view">View</div>      </div> [css] .content_wrap {     position:relative;     width:100%; } .content-list {     width: 40%;     height:500px;     float:left;     background-color:yellow } .content-view {     width: 60%;     height: 500px;     float: left;     background-color: beige }