Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

The transaction log for database is full due to 'ACTIVE_TRANSACTION'

$
0
0

Hello team,

One of the my database was in Recovery Pending state and we are trying to restore that database again with latest full backup  but I am unable to do so I am getting below error.

The transaction log for database <db Name> is full due to 'ACTIVE_TRANSACTION'.

Now database is in Recovery pending state and when I try to restore it goes to 99% and and getting failed.

Even I tried to bring db online by

ALTER DATABASE MyDB SET ONLINE but no luck. I have also put my database in emergency mode

The log cannot be rebuilt because there were open transactions/users when the database was shutdown, no checkpoint occurred to the database, or the database was read-only. This error could occur if the transaction log file was manually deleted or lost due to a hardware or environment failure.

Msg 1813, Level 16, State 2, Line 1

My suspicion is that the max growth size was reached and it can’t grow to complete the active transaction. 


Rahul


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>