After running:
SELECT [total size KB], B.rows, O.name
FROM (select sum(convert(decimal(10,0),dpages)*8129/1024)
[total size KB], id
FROM sysindexes group by id)
A INNER JOIN sysindexes B ON A.id = B.id and B.indid in (0,1)
INNER JOIN sysobjects O ON B.id = O.id WHERE B.rows <> 0
ORDER BY [total size KB] desc
I receive a list of tables in the database and their size. However, at
the top of the list is a table that reports a size of 6295974.007811
KB... this table contains exactly 2 rows of information.. (whereas the
next largest table ~3GB contains 1.5million). This 2 row table total
size can't be right... can it?
I have created a backup of the entire table in order to try and delete
the data in that table.. and/or delete the entire table to see if my
database decreases by a substaintial amount.. I really am fairly new to
SQL and think even if I delete the entire table and recreate it.. I am
going to lose something (dependencies, SP, etc.. etc.)
Any suggestions are VERY appreciated.