BACKUP LOG cannot be performed because there is no current database backup

前端 未结 14 595
[愿得一人]
[愿得一人] 2021-01-30 09:59

I tried to restore a database but this message showed. How do I restore this database?

Restore of database \'farhangi_db\' failed.
(Microsoft.SqlSer

14条回答
  •  失恋的感觉
    2021-01-30 10:27

    I am not sure whether the database backup file, you trying to restore, is coming from the same environment as you trying to restore it onto.

    Remember that destination path of .mdf and .ldf files lives with the backup file itself.

    If this is not a case, that means the backup file is coming from a different environment from your current hosting one, make sure that .mdf and .ldf file path is the same (exists) as on your machine, relocate these otherwise. (Mostly a case of restoring db in Docker image)

    The way how to do it: In Databases -> Restore database -> [Files] option -> (Check "Relocate all files to folder" - mostly default path is populated on your hosting environment already)

提交回复
热议问题