Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Database Stuck in Recovery Mode.. Expand / Collapse
Author
Message
Posted Wednesday, September 5, 2007 1:33 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, September 4, 2013 10:37 AM
Points: 36, Visits: 18

i have a database which seems to be stuck in recovery mode.

I have tried to detach it but cant, i have also tried stopping the service in order to delete but it goes through the process of trying to stop the service and eventually just hangs..

anyone any ideas how to resolve this problem...?

 

many thanks in advance.....

 

Post #396363
Posted Wednesday, September 5, 2007 3:42 PM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Saturday, August 9, 2014 9:17 AM
Points: 3,433, Visits: 14,427

You run into this pesky problem when you restore a database with no recovery option per Microsoft that is not valid so SQL Server keeps your database in recovery until you restore with recovery. Solution delete your restore and restore with recovery.  Hope this helps.

 



Kind regards,
Gift Peddie
Post #396650
Posted Thursday, September 6, 2007 4:29 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, January 26, 2012 5:26 AM
Points: 1,367, Visits: 1,585
You could also execute restore with no backup files, to finish the recovery process (this saves the delete).

RESTORE DATABASE mydatabase WITH RECOVERY

Andras




Andras Belokosztolszki, MCPD, PhD
GoldenGate Software
Post #396794
Posted Thursday, September 6, 2007 8:02 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Saturday, August 9, 2014 9:17 AM
Points: 3,433, Visits: 14,427

That is correct but the time I answered this post it was not the advice I will give based on duration in recovery.  Delete starts a clean restore with recovery skipping the database getting to in recovery mode in the first place.

 



Kind regards,
Gift Peddie
Post #396892
Posted Monday, September 17, 2007 3:48 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, September 4, 2013 10:37 AM
Points: 36, Visits: 18

Hi

sorry for the delay in getting back, but been away on business...

thanks for the pointers, but nothing works?

when i run these scripts i get the error that the database is in use.

this database was a sql 2005 database that i was updating from another server.

 

any further ideas of how i get round this?

thanks in advance....

 

 

Post #399625
Posted Monday, September 17, 2007 3:51 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, September 4, 2013 10:37 AM
Points: 36, Visits: 18

go it sorted.

eventually i was able to stop the sql service and delete the database.

 

thanks again for your help - much appreciated....

Post #399626
Posted Tuesday, January 13, 2009 11:32 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, January 27, 2009 7:25 AM
Points: 1, Visits: 4
how do you stop the service though?
Post #635693
Posted Tuesday, January 13, 2009 4:05 PM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Saturday, August 9, 2014 9:17 AM
Points: 3,433, Visits: 14,427
The SQL Server service is in the configuration manager under services right click it and click stop.



Kind regards,
Gift Peddie
Post #635904
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse