Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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