SQL Server database restore error: specified cast is not valid. (SqlManagerUI)

前端 未结 4 791
情书的邮戳
情书的邮戳 2020-12-13 23:07

I am using SQL Server 2008 R2 Standard (version 10.50.1600.1) for my production website and SQL Server Express edition with Advanced Services (v10.50.1600.1) for my localho

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-13 23:21

    Below can be 2 reasons for this issue:

    1. Backup taken on SQL 2012 and Restore Headeronly was done in SQL 2008 R2

    2. Backup media is corrupted.

    If we run below command, we can find actual error always:

    restore headeronly
    from disk = 'C:\Users\Public\Database.bak'
    

    Give complete location of your database file in the quot

    Hope it helps

提交回复
热议问题