How to Show Tables by Size?
Once you have connected to MS SQL using SSMS Right click on the database Select New Query Paste the below query and click Execute SELECT t .NAME AS TableName, s .Name AS SchemaName, p .rows AS RowCounts, SUM(a .total_pages) * 8 AS TotalSpaceKB, SUM(a .used_pages) * 8 AS UsedSpaceKB, (SUM( a.total_pages ) – SUM( a.used_pages […]