Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 SQL Server Administration (2012)
 how to figure out what is using up space in a db

Author  Topic 

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2015-01-21 : 07:13:24
I have a 500 GB database

How can I see which tables and what is using up the space?

gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2015-01-21 : 09:04:26
sys.tables will tell you the table names https://msdn.microsoft.com/en-us/library/ms187406.aspx
sp_spaceused will tell you the space used by each table https://msdn.microsoft.com/en-CA/library/ms188776.aspx
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2015-01-21 : 11:22:39
An easy way is using the GUI: right click on the database, reports, disk usage by top tables.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -