sql查看所有表大小的方法. 代码: declare @id int ) declare @pages int declare @dbname sysname ,) ,) ,) create table #spt_space ( [objid] int null, [rows] int null, ) null, ) null, ) null, ) null ) set nocount on -- Create a cursor to loop through the user tables d