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

前端 未结 14 804
[愿得一人]
[愿得一人] 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:26

    You can use following SQL to restore if you've already created database

    RESTORE DATABASE [YourDB]
    FROM DISK = 'C:\YourDB.bak'
    WITH MOVE 'YourDB' TO 'C:\YourDB.mdf',
    MOVE 'YourDB_Log' TO 'C:\YourDB.ldf', REPLACE
    

提交回复
热议问题