Home / Programming / Blog article: SQL Server 2008 – Get Space Used By a Table

| RSS

SQL Server 2008 – Get Space Used By a Table

February 23rd, 2009 | No Comments | Posted in Programming

You can easily get information on how much space a table is using by executing sp_spaceused stored procedure. Executing the following query on AdventureWorks database shows me how much space Person.Contact table is using. Information presented is detailed which includes the number of rows, reserved space, index size, space used by data and any unused space in kilo-bytes.

exec sp_spaceused [Person.Contact]

 

 

image

Leave a Reply 1591 views, 1 so far today |
Tags: ,

Leave a Reply





Switch to our mobile site