September 5, 2007 at 1:33 am
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.....
September 5, 2007 at 3:42 pm
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
September 6, 2007 at 4:29 am
You could also execute restore with no backup files, to finish the recovery process (this saves the delete).
RESTORE DATABASE mydatabase WITH RECOVERY
Andras
September 6, 2007 at 8:02 am
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
September 17, 2007 at 3:48 am
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....
September 17, 2007 at 3:51 am
go it sorted.
eventually i was able to stop the sql service and delete the database.
thanks again for your help - much appreciated....
January 13, 2009 at 11:32 am
how do you stop the service though?
January 13, 2009 at 4:05 pm
The SQL Server service is in the configuration manager under services right click it and click stop.
Kind regards,
Gift Peddie
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply