?
Solved

SQL Server 2005 stuck in restoring mode

Posted on 2010-08-19
5
Medium Priority
?
310 Views
Last Modified: 2012-05-10
Hi,

I restored a db from backup and applied logs to the last one, however, I forgot to do the last log with RECOVERY

I did the following to the last log:

RESTORE LOG CLAW
FROM DISK = 'E:\SQL\TempBackup\claw_201008181100.trn'
WITH NORECOVERY

How do I bring the db to recovered mode?

Thanks,
D
0
Comment
Question by:dteshome
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:dba2dba
ID: 33479650
ALTER DATABASE database_name RECOVER
0
 
LVL 17

Expert Comment

by:Chris Mangus
ID: 33479678
I believe you're going to have to rerun the entire restore and when you do the last log the use WITH RECOVERY.
0
 
LVL 17

Accepted Solution

by:
Chris Mangus earned 500 total points
ID: 33479776
I asked my cohort here at work and found that they have used RESTORE DATABASE [Log Claw] WITH RECOVERY with marginal success.
0
 

Author Comment

by:dteshome
ID: 33479984
dba2dba
The "command" you gave (below) is not valid; no such ... in SQL Server
ALTER DATABASE database_name RECOVER

I was hoping that there was another, les "envasive" way than redoing!  Anyone?
0
 

Author Comment

by:dteshome
ID: 33480056
Hi, cmangus:

Your sol'n (restore database claw with recovery )  worked.

Thanks,
Dan
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how the fundamental information of how to create a table.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question