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

Pubblicato il: 28 marzo 2022
sul canale di: 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


In questa pagina del sito puoi guardare il video online 33.How to show table row count and Data space used in SQL Server with SSMS della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Vasanth R 28 marzo 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 90 volte e gli è piaciuto 0 spettatori. Buona visione!