RESTORE DATABASE DbName_Test1 FROM DISK = 'D:\XXXX\Data\DB.bak' with replace,
MOVE 'DBName2.0' TO 'D:\XX\Data\DbName_Test1.mdf',
MOVE 'DBName2.0_log' TO 'D:\XX\Data\DbName_Test1_log.ldf'
新建数据库 DbName_Test1 选项中选择兼容版本。
还原DBName2.0 是原备份数据库名。
RESTORE DATABASE DbName_Test1 FROM DISK = 'D:\XXXX\Data\DB.bak' with replace,
MOVE 'DBName2.0' TO 'D:\XX\Data\DbName_Test1.mdf',
MOVE 'DBName2.0_log' TO 'D:\XX\Data\DbName_Test1_log.ldf'
新建数据库 DbName_Test1 选项中选择兼容版本。
还原DBName2.0 是原备份数据库名。
转载于:https://www.cnblogs.com/yangzhx/p/5032125.html