33.How to show table row count and Data space used in SQL Server with SSMS

Publicado el: 28 marzo 2022
en el canal de: Vasanth R
90
0

There's a quick and convenient way to see row count, data space used in all tables in one list with SSMS.

Query to find table row count :
SELECT SCHEMA_NAME(t.schema_id) SchemaName,
t.[name] TableName,
SUM(p.row_count) TotalRows
FROM sys.tables t
INNER JOIN sys.dm_db_partition_stats p
ON t.object_id = p.object_id
AND t.type_desc = 'USER_TABLE'
AND p.index_id IN (0,1)
WHERE t.[name] = 'SalesOrderDetail'
GROUP BY t.schema_id, t.[name]
ORDER BY TotalRows DESC


En esta página del sitio puede ver el video en línea 33.How to show table row count and Data space used in SQL Server with SSMS de Duración hora minuto segunda en buena calidad , que subió el usuario Vasanth R 28 marzo 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 90 veces y le gustó 0 a los espectadores. Disfruta viendo!