[SQL] Table made within the database size

[SQL] Table made within the database size


There are many ways on the network, but they do not think that combination, not to create Temp Table, or else Script written a bit longer, then write a simple version, people in need can try the above apply SQL Server 2008

declare @a table(name sysname, row integer, recevered varchar(20), data varchar(20),
  index_size varchar(20),unused varchar(20));

insert into @a exec sys.sp_MSforeachtable "sys.sp_spaceused '?'";

select * from @a order by row desc;

Original: Large column  [SQL] Table made within the database size


Guess you like

Origin www.cnblogs.com/chinatrump/p/11490884.html