sqlserver

数据库还原出错

 

问题:

服务器: 消息 5105,级别 16,状态 2,行 1
设备激活错误。物理文件名 'D:\LOG\ShoppingDB_Log.ldf' 可能有误。
服务器: 消息 3156,级别 16,状态 1,行 1
文件 'ShoppingDB_Log' 无法还原为 'D:\LOG\ShoppingDB_Log.ldf'。请使用 WITH MOVE 选项来标识该文件的有效位置。
服务器: 消息 3013,级别 16,状态 1,行 1
RESTORE DATABASE 操作异常终止。

解决方法:

RESTORE DATABASE EsstProject
FROM  DISK = 'd:\simnet\EsstProjectbk'
WITH  MOVE 'EsstProject_Data' TO 'd:\Program Files\Microsoft SQL Server\MSSQL\data\EsstProject_Data.mdf', 
      MOVE 'EsstProject_Log' TO 'd:\Program Files\Microsoft SQL Server\MSSQL\data\EsstProject_Log.ldf'

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2022-12-23
相关资源
相似解决方案