첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
SELECT
    MAX(B.name)                                                  AS TableName
   ,CAST((SUM(A.reserved) * 8192.0 / 1024   ) AS NUMERIC(18, 0)) AS TableSizeKB
   ,CAST((SUM(A.reserved) * 8192.0 / 1048576) AS NUMERIC(18, 0)) AS TableSizeMB
FROM       sysindexes A
INNER JOIN sysobjects B ON B.id = A.id
WHERE A.indid in (0, 1, 255)
AND   B.xtype = 'U'
GROUP BY A.id
ORDER BY SUM(a.reserved) DESC;
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요