我已使用此脚本恢复数据库备份。
步骤:1
sp_configure 'contained database authentication', 1;
GO
RECONFIGURE;
GO
步骤:2
BACKUP DATABASE DataBaseName
TO DISK = 'DataBaseName Path (Local Drive)'
GO
BACKUP LOG DataBaseName
TO DISK = 'DataBaseName Path (Local Drive)'
GO
答案 0 :(得分:0)
如果要恢复刚才使用的数据库
USE MASTER
GO
RESTORE DATABASE DBName FROM DISK = 'E:DBName.bak' WITH REPLACE