sql serve数据库查询那个表占空间最大
CREATE TABLE #T (NAME nvarchar(100),ROWS char(20),reserved varchar(18) ,Data varchar(18) ,
index_size varchar(18) ,Unused varchar(18) )
GO
INSERT #T EXEC SP_MSFOREACHTABLE ‘EXEC sp_spaceused “?”’
SELECT * FROM #T ORDER BY CONVERT(INT,REPLACE(DATA,‘KB’,’’)) DESC