We have SQL Server 2000, SP3. I excuted the following commands on one of our Databases:
1) backup log dbname with truncate_only
2) dbcc shrinkfile (log, 10000)
Then I tried to execute:
sp_spaceused @updateusage=true
To recalculate the space used and to obtain an updated report. The command (sp_spaceused) has been running for over 50 minutes. I think I am going to stop the command at 1 hour of execution time.
Does anyone know why this command is taking so long? How may I speed it up? Also, (another related item) is there any way to manually update table statistics (with a command)?
Thanks in advance for your assistance, Kevin