USE [master];
GO

CREATE DATABASE test;
GO

CREATE DATABASE test2;
GO

BACKUP DATABASE test TO DISK = 'c:\temp\test.bak' WITH INIT, COMPRESSION;
GO

RESTORE DATABASE test2
  FROM DISK = 'c:\temp\test.bak'
  WITH REPLACE,
  MOVE 'test' TO 'c:\temp\test2.mdf',
  MOVE 'test_log' TO 'c:\temp\test2.ldf';
参考: http://dba.stackexchange.com/questions/44967/error-3154-while-restoring-a-backup-using-with-replace

相关文章:

  • 2021-10-09
  • 2021-10-07
  • 2021-11-19
  • 2021-05-21
  • 2021-07-04
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-09
  • 2021-09-27
  • 2022-12-23
  • 2021-10-09
  • 2021-10-09
  • 2021-11-28
  • 2021-12-04
相关资源
相似解决方案