Database Recovery - DB Not Detached - SQL Server 2000

  • We have a SQL Server 2000 instance on a machine whose hard drive died. The databases on this server have their files stored on another machine. The databases were not backed up and the databases were not detached before the server machine's drive failed. Is there any way to retrieve these databases using the raw MDF and LDF files where the databases were not previously detached? I considered trying to 'slip in' those files into a new database I created with the same name on another machine, but when I tried to copy the raw files Iget an OS error that they are in use and cannot be copied.

    We don't have a DBA now, and though I know my way around SQL Server, I don't have an expert to rely on. Any assistance would be tremendously appreciated!!

    Elliot

  • If the files are not corrupted, then yes you may attach them to another SQL instance.

    The reason why the OS says they are in used is because you have SQL server running and using those files.

    Stop SQL Server on both of the affected computers, then copy them.

    If you need professional assistance, send us an email info@quiconsulting.com

    QUIGROUP- Need a Certified experienced DBA for a project or troubleshooting? Need help with programming, database recovery, performance tuning, ETL, SSRS or developing new databases? Contact us.. 1-786-273-9809

  • You should simply be able to attach them. No need for convoluted tricks unless there's damage of some form.

    If they won't simply attach, post the errors.

    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
  • Thank you both for your prompt assistance, and both comments have been very helpful and did the trick. I didn't realize at first but I did have a SQL Server instance that pointed to these database files that caused the inability to copy the raw files - thanks Ysaias!

    And thanks Gail! Once I fixed the above issue, the db files did attach to a database on a new instance without error.

    I'm a first time poster to this forum - terrific!

    Elliot

  • Great. Now go put a backup strategy in place.

    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
  • Absolutely. I'm doing so as we speak ...

    Thanks again!

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

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