x

How to bring the database online from Recovery Pending State

Hi All,

Need a small help that one of my Production database is in recovery pending state. How could i bring the database again in online state.

Can you please tell which SQL Command should i run.

Thanks

Basit Khan

more ▼

asked Jun 21, 2012 at 10:46 AM in Default

avatar image

basit 1
509 56 65 91

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

the database become online after running the command

 Alter database  set online
more ▼

answered Jun 21, 2012 at 11:53 AM

avatar image

basit 1
509 56 65 91

(comments are locked)
10|1200 characters needed characters left

RESTORE DATABASE X WITH RECOVERY

That's one way to finish up the recovery process if it's part of restore.

If you're waiting on recovery because of a reboot, just keep waiting.

more ▼

answered Jun 21, 2012 at 11:53 AM

avatar image

Grant Fritchey ♦♦
137k 20 42 81

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x273

asked: Jun 21, 2012 at 10:46 AM

Seen: 5485 times

Last Updated: Jun 21, 2012 at 11:53 AM

Copyright 2016 Redgate Software. Privacy Policy