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

basit 1 gravatar image

basit 1
499 51 63 85

(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

basit 1 gravatar image

basit 1
499 51 63 85

(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

Grant Fritchey gravatar image

Grant Fritchey ♦♦
103k 19 21 74

(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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

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:

x242

asked: Jun 21, 2012 at 10:46 AM

Seen: 4319 times

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