Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

my tempdb log is currently at:

Currently allocated space: 0,50 MB Available free space: -25,95 MB (-5190%)

How can this be minus? What should I do?

share|improve this question

It might just be that a particular reading for available space is wrong (and the rest of the database is healthy). I have seen negative values like this after certain admin operations such as detaching a DB and reattaching it without its original log (i.e. using sp_attach_single_file_db) though in most cases this sort of thing would not be done against tempdb.

One or more of the DBCC commands like DBCC UPDATEUSAGE may sort this if it is mealy an accounting discrepancy.

Also if the rest of your databases are fine (do check before proceeding, and verify you have good backups, in case the tempdb size misreporting is a symptom of a larger problem) then just try stop and restart the SQL services - I believe tempdb is recreated from scratch each time the services start.

See also the notes on this page about tempdb, specifically in relation to some tools misreporting the size (generally or after a shrink operation).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.