Database in Restoring state

  • I had created a DMP to do full, differential and log backup. Full wouldn’t run till midnight so differential and log started running, although that was not my intention, as log runs every 20 mins and Differential runs every 1 hour.

    But it brought 3 databases to Restoring state.

    Any idea why only 3 databases would go to suddenly to restoring state? I have cancelled my DMP for now and restored them using this command

    RESTORE DATABASE DatabaseName WITH RECOVERY

  • The only tasks in the Maintenance Plan were to perform full, diff and t-log backups? Were there any other tasks? Was there another job that had restored the database. Is logshipping enabled by chance?

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • Were you taking log backups with NoRecovery?


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • Yep. I had 'take tail log backup' option checked. Thanks.

  • SQL_Surfer (6/22/2012)


    Yep. I had 'take tail log backup' option checked. Thanks.

    That option means 'backup the log and switch the database into the restoring state'.

    It's not an option that should be checked for regular log backups, it's only for when you are backing up the tail of the log in preparation for restoring a backup over that database.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply