Tempdb Log Question

  • One of my Job was failing couple of times on its defined schedule and the reason for its failure according to the log event is tempdb log was full. When I checked which transaction is using the tempdb log using ' Select name, log_reuse_wait_desc From sys.databases' I see 'Active_Transaction' for the log_reuse_wait_desc column . I checked if there is any open transaction using 'DBCC Opentran('tempdb') I got the message that there is no open transaction in the tempdb database. Why is my tempdb log stuck with the 'Active_Transaction' ??

  • I think if the transaction fails with a full tempdb log, it gets rolled back. It seems to me I've seen that written somewhere.

    Can you make the job fail? It sounds like you don't have enough tempdb space set.

  • Yes if the transaction fails it gets rolled back. But the question is after the job fails then it should roll back and the log_reuse column should have 'Nothing' as status and initial allocated space should be available with no open transaction. I am getting 'Active_Transaction' as Status . Why??

  • I have the same problem. I thought I'd wait for my maintenance window where I had to restart the SQL Service thereby recreating TempDB. It still has Active_transaction there but DBCC Opentran('tempdb') shows no active open transactions....

    what gives? I had a 16 gig Tempdb log file 😀

    'nix

  • I noticed the same problem and also I did not find any active transaction, I made a SHRINK of TLogFile and magically returned to the field log_reuse_wait_desc NOTHING:w00t:

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply