Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
Restoring .bak files in sql server

Answered Restoring .bak files in sql server

  • 2012年4月11日 上午 07:31
     
     

    restore error

    I got this error while restoring a .bak file. any one help to resolve this error

所有回覆

  • 2012年4月11日 上午 08:45
     
     已答覆 包含代碼

    looks not good.

    are you sure that dynamics.bak is a SQL Server backup ?

    are you using the same or higher version than the backup file is coming from?

    use the following statement on both servers to get version number

    select @@version
    

    • 已標示為解答 Somasekar N 2012年4月11日 下午 12:28
    • 已取消標示為解答 Somasekar N 2012年5月11日 上午 04:49
    • 已標示為解答 Somasekar N 2012年5月11日 上午 04:50
    •  
  • 2012年4月11日 上午 09:17
     
     

    hi,

    Are you trying to restore a backup made on a newer version than the one you are restoring? Database backups are not backward compatible, eg: you cannot restore a backup created on SQL 2008 to SQL 2005

    I hope it helps.

    Janos


    There are 10 type of people. Those who understand binary and those who do not.
    My Blog

  • 2012年4月11日 下午 12:17
     
      包含代碼

    Hello,

    As mentioned in another reply, remember that SQL Backups are not backward compatible. 

    If you are trying to restore to the same or newer sql version and you get this error, the BAK file could be corrupted

    you can check it using below code

    RESTORE VERIFYONLY FROM DISK = "C:\FILE.BAK"

    http://msdn.microsoft.com/en-us/library/ms188902.aspx


    Javier Villegas | @javier_villhttp://sql-javier-villegas.blogspot.com/

    Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you

  • 2012年4月11日 下午 12:29
     
     
    Thank you daniel, that was a version problem only.