Solved

SQL Server 2005 stuck in restoring mode

Posted on 2010-08-19
5
305 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

914 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now