Hi
We have a problem with a database that has some hidden data somewhere. We cannot shrink the files or database any more, but when we query table sizes, index sizes we do not come near the database size.
I found that when I query sysindexes
select *, dpages *8 [size in kbs]
from sysindexes
where indid <= 1
order by dpages *8 desc, 1 desc
I have one row that belongs to sys.sysrscols with 50 million rows and about 23 GB of data.
When I query the sys.sysrscols-table
SELECT
*
FROM sys.sysrscols rs
I can only see exactly 4000 rows. Since it's exactly 4000 rows it makes me think that sys.sysrscols is a view.
However I have grouped the results from the 4000 rows and found some tables that exists most frequently. I have tried to rebuild all their indexes and statistics.
I have also tried to rebuild all stats and indexes on sys.sysrscols.
I have also run DBCC checkdb and also DBCC CHECKTABLE('sys.sysrscols'). I have also tried with REPAIR_REBUILD as parameters.
None of the checkdb/checktable seems to indicate any problems.
Nothing seems to help. I have tried to reboot the sql-services and also the server. I have also tried to take a couple of backups to see if that might help.
Any other ideas on how to be able to reclaim the space?