DB의 테이블들 용량분포를 출력하는 프로시저
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROC [dbo].[dba_SpaceUsed] @SourceDB varchar ( 128 ) = null -- Optional database name -- If omitted, the current database is reported. , @SortBy char(1) = 'S' -- N for name, S for Size -- T for table name /* Returns a table with the space used in all tables of the * database. It's reported with the schema information unlik..