SQLServer-DBA.com Links

Subscribe to newsletter

Dba_db2_button

Powered by TypePad
Database stuck RESTORING

14 March,2013 by Jack Vamvas

A DBA reported a database stuck RESTORING status. According to the  DBA  the restore had finished. On closer inspection the RESTORE command had not included the  RECOVERY argument during the RESTORE process

The RECOVERY option sends an instruction to roll back uncommitted transactions. When recovery completes the database switched to ONLINE  sql database status

I confirmed the database was in RESTORING database status , and then issued the RESTORE command WITH RECOVERY. :

 

use master
go
select * from sys.master_files where db_name(database_id) = 'database_name'
GO
--extra command to complete restore
RESTORE DATABASE database_name WITH RECOVERY


 

Read More

SQL Database Status with sys.databases

SQL Server Database Status,monitoring and Restores

SQL Server – Difference between restore RECOVERY and NORECOVERY


Author: Jack Vamvas (http://www.sqlserver-dba.com)

******** *******

Subscribe to SQLServer-DBA.com

Latest posts delivered to you daily

Delivered by FeedBurner

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer