Restore database--- help!

  • My database server's controller failed, so I have to restore the database to another server, I run and sql statement, but got the following error message:

    Server: Msg 3201, Level 16, State 2, Line 1

    Cannot open backup device 'D:\DATA\MSSQL\BACKUP\imagedb1.bak'. Device error or device off-line. See the SQL Server error log for more details.

    Server: Msg 3013, Level 16, State 1, Line 1

    RESTORE DATABASE is terminating abnormally.

    Please help

    Thank you

     

    Yan

     

     

     

     

  • Is yiur backup location correct? Does ur new server have the copy of the backup from the old server at D:\DATA\MSSQL\BACKUP\imagedb1.bak

    Thanks

    Sreejith

  • Hi Screejith,

    I copied the back up file to the local server, and the path in sql is correct. as below:

    Restore database imagedb1

    from disk = 'D:\DATA\MSSQL\BACKUP\imagedb1.bak'

    with recovery, replace, nounload,

    move 'imagedb1_data' to 'd:\imagedb1_data.mdf',

    move 'Imagedb1_log' to 'd:\imagedb1_log.ldf'

     

    Thanks

    Yan

     

  • Check the following article by MAK, In that he has come up with one  UDF that basically includes 3 different way we generally use to check the file status.

    http://www.databasejournal.com/features/mssql/article.php/10894_3492046_1

    HTH,

     

     

    Kindest Regards,

    Sameer Raval [Sql Server DBA]
    Geico Insurance
    RavalSameer@hotmail.com

  • Try RESTORE WITH MOVE option

    Alan Fan

  • Thank you.  I tried that. 

    May be something wrong with the file itself. There was a problem during the transfer over the server.

    By the way, we got the new controller, the hardware problem was solved, and the database can be seen now. 

    However, it is a good time to check the backup file.

    Thank you, everyone.

    Yan

  • Hi Sameer Raval,

    Thank you for the help, I will look the article.  I also believe that something wrong with the file because I had a problem to transfer the file, it was stop first and somehow start again. 

    Have a nice day.

    Yan 

  • Just out of curiosity, what does the SQL Server error log tell you about the attempted restore.  Also check the Event log for any errors at that time.

    It could be possible that your file is corrupt. 

    You should try RESTORE HEADERONLY FROM... WITH CHECKSUM.  That should verify your backup.

    please post your error log messages if you have any.



    --------------------------
    Zach

    Odds_And_Ends Blog

Viewing 8 posts - 1 through 7 (of 7 total)

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