I've got a data file which is 40GB, but is half empty. I want to shrink it,
but the shrink doesn't work:
dbcc shrinkfile (file)
does nothing. It just says DBCC execution completed immediately. It
normally works fine for me. I've run it hundreds of times before.
sp_spaceused reports that the file is only 20GB big and not 40GB! I've run
dbcc updateusage, but to no avail. And this is a data file, not a log file.
I'm currently running dbcc checkdb on the database, but am reluctant to use
it to fix any errors (assuming it finds any), because I don't want to take
the database offline or single-user. It's OLTP and about 200GB.
Can anyone help with this?
TIA,
Joseph.