CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2015
    Posts
    2

    [RESOLVED] How to restore a database using mdf and ldf files in Sql 2008

    Hello,
    Asking for expert opinion. A very unfortunate event happened. One of our PCs crashed few days ago. That PC had SQL Server 2008 installed. Unfortunately no backup was running on that server. We sent the disk to a data recovery place and looks like they can recover some of the mdf and ldf files. We are particularly interested in 1 particular database. My questions are:
    1. Is this possible to restore a particular database using corresponding mdf and ldf files?
    2. Do we need to have any mdfs from the system databases? Any other files we need to ask data recovery company t look for?
    3. Steps and/or or best practices to restore that database into a new machine.
    Thanks for your help in advance.

  2. #2
    Join Date
    Nov 2015
    Posts
    1

    Re: How to restore a database using mdf and ldf files in Sql 2008

    You can attach the database files to another instance if you have the mdf' and ldfs ( even with mdf you will be able to attach )
    System database master contains the user info, and msdb contains the jobs and other info; if you couldn't recover these files, you need to add them manually
    ssms -> rightclick database -> attach ; choose the files and attach
    OR
    You may have to run a 'DBCC CHECKDB()' statement against the newly attached database

  3. #3
    Join Date
    Nov 2015
    Posts
    1

    Re: How to restore a database using mdf and ldf files in Sql 2008

    Look at this resource, you might find more useful information. http://community.office365.com/en-us.../t/266070.aspx

  4. #4
    Join Date
    Nov 2015
    Posts
    2

    Re: How to restore a database using mdf and ldf files in Sql 2008

    Thank you guys for your feedback and help. Sorry, that long time did not respond. This is because the issue was solved and I forgot to tell.) Thank you!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured