Restore SQL Server DB without transaction log

后端 未结 5 2001
既然无缘
既然无缘 2021-02-06 20:30

Given a SQL Server 2008 .bak file, is there a way to restore the data file only from the .bak file, without t

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-06 21:21

    No, the transaction log is required.

    Option 1:

    An option may be to restore it to a machine that you DO have enough space on. Then on the restored copy change the logging to either bulk logged or simple, shrink the logs, do another backup operation on this new copy and then use that to restore to the target machine with the now much smaller transaction log.

    Option 2:

    Alternatively, perhaps the contact at the external source could shrink the transaction log before sending it to you (this may not work if the log is large due to a lot of big transactions).

    Docs on the command to shrink the log file are available here.

提交回复
热议问题