Can we have a SQL query which will basically help in viewing table and index sizes in SQl Server.
How SQL server maintains memory usage for tables/indexes?
EXEC sp_MSforeachtable @command1="EXEC sp_spaceused '?'"