Muchas veces necesitamos analizar el tamaño de data de las tablas en sqlserver, este query nos devuelve el resultado.
create table #t (table_name
sysname,
rows_cnt int,
reserved varchar(25),
data varchar(25),
index_size varchar(25),
unused varchar(25)
)
insert into #t
execute sp_msforeachtable 'execute sp_spaceused [?]'
select
*
from
#t
order by
cast(left(reserved, charindex(' ', unused) - 1) as int) desc
Necesita un Software a la medida
create table #t (table_name
sysname,
rows_cnt int,
reserved varchar(25),
data varchar(25),
index_size varchar(25),
unused varchar(25)
)
insert into #t
execute sp_msforeachtable 'execute sp_spaceused [?]'
select
*
from
#t
order by
cast(left(reserved, charindex(' ', unused) - 1) as int) desc
Necesita un Software a la medida
Comentarios
Publicar un comentario