I’ve corrupt DB and I'm trying to restore its .BAK file to a DB.


  1. Posts : 1
    xp 32bit
       #1

    I’ve corrupt DB and I'm trying to restore its .BAK file to a DB.


    So I have a corrupt DB in MS SQL Server 2005. I cant load it, so I cant restore to it. I created a DB with its same name. I am pulling down the most recent .BAK file for the corrupt DB, hoping it will allow me to restore it to the new DB. Is this possible or do I need to do something else? Any advice..Help..
      My Computer


  2. Posts : 2,468
    Windows 7 Ultimate x64
       #2

    Have you tried running DBCC CHECKDB to attempt to detect errors and maybe fix them? It can be a better option if you don't want to lose data since your last backup.

    Otherwise, it's simple, just delete the damaged DB and restore the previous backup files. Giving it the same name as it was before will allow client applications to run right away as they've done before.
      My Computer


  3. Posts : 1
    xp 32bit
       #3

    hello. I had the same problem...
    - Right-click the \"Databases\" folder in the Object Browser and click \"Restore Database...\" in the menu that appears.
    - Select the database name (or enter the name if it does not already exist) in the \"To database\" drop-down menu.
    - Select the \"From device\" option and click the button with the \"...\" symbol.
    -Click the \"Add\" button and navigate to the folder on the server where the BAK file is located.
    - Double-click the BAK file and then click the \"OK\" button.
    - Check the \"Restore\" checkbox and click \"OK\" to restore the database from the BAK file

    this site can be helpful:
    https://social.msdn.microsoft.com/Fo...forum=sqltools
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:00.
Find Us