时间:2021-07-01 10:21:17 帮助过:4人阅读
-- 完整还原
RESTORE DATABASE XXXX
FROM DISK = ‘d:\XXXX.bak‘
WITH MOVE ‘XXXX‘ TO ‘D:\MSSQL\Data\XXXX.mdf‘,
MOVE ‘XXXX_Log‘ TO ‘D:\MSSQL\Data\XXXX.ldf‘,
REPLACE,NORECOVERY;
GO
查看备份文件信息
RESTORE FILELISTONLY FROM DISK = N‘d:\XXXX.bak‘;
MSSQL 备份数据库还原
标签: