Server Crashed How best to recover?

  • A new server is being installed. We have recent backups of the MDF and LDF files. We also have good backups form a week or so back. What is the best recovery strategy? I see my options as attaching the existing files or restoring from an older backup and losing data. Any ideas would be greatly appreciated.

  • If you know the logical file name then create a blank database. Detach it and while attaching the DB refer the mdf and ldf file.

  • Thanks - good idea. What about user and security. I think we also have a good master.mdf file (but an older backup).

  • sureshrajan (6/26/2009)


    If you know the logical file name then create a blank database. Detach it and while attaching the DB refer the mdf and ldf file.

    Shouldn't be necessary. That's generally reserved for when the log is missing and the DB won't attach.

    Just attach the files. In most cases it will work. If you have a backup of master (where the logins live) restore that first. You can try swapping the mdf and ldf of master with the ones from the crashed server, but I wouldn't recommend it.

    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
  • Thanks so much. I'll give it a try this weekend (or today if the hardware folks finish) and let you know how it goes.

  • Thanks for your help. DB is back on line and all data is good. Last issue though is that SQL 2005 Management Studio cannot install. Raises errors:

    MainEngineThread is returning 1603 (from the log)

    SQL server does not appear in Add/Remove programs on the new server.

    Tried to reinstall but cannot get past the error. Any ideas?

  • BillDenver (6/28/2009)


    Tried to reinstall but cannot get past the error. Any ideas?

    Not offhand. Does google turn up any suggestions?

    Why do you need management studio on the server?

    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
  • You're up early. Good point, I'll just put it on a workstation.

    Thanks for all your help.

  • BillDenver (6/28/2009)


    You're up early.

    Not particularly early. I'd just finished lunch when I wrote that.

    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 9 posts - 1 through 8 (of 8 total)

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