Database Stuck in Recovery Mode..

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

     

  • 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

  • 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

  • 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

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

     

     

  • go it sorted.

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

     

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

  • how do you stop the service though?

  • 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