Solved

SQL Server 2005 stuck in restoring mode

Posted on 2010-08-19
5
306 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
  • 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 125 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

825 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