Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Table of Contents

Table of Contents

log_reuse_wait_desc errors after restore

What may happen is that the database sets itself to replication mode, and does not allow the shrinking of the transaction log while continuing to grow indefinitely.

To verify if this is the case run a new query on the DB:

Code Block
themeEmacs
languagesql
USE master;
GO
SELECT name, log_reuse_wait_desc, * FROM sys.databases
WHERE name = 'MYDB';

You should see:

 

 

Code Block
themeEmacs
languagesql
USE master
EXEC sp_removedbreplication
	@dbname = 'MYDB'
GO
  1. Proceed to backup MYDB

  2. Shrink MYDB

  3. Backup the MYDB transaction log

  4. Shrink the MYDB transaction log

Insert Next Topic