--查看所有表的大小 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 declare c…