数据库未经身份验证以恢复备份

时间:2018-03-20 10:09:51

标签: sql-server backup

我已使用此脚本恢复数据库备份。

步骤: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

1 个答案:

答案 0 :(得分:0)

如果要恢复刚才使用的数据库

USE MASTER
GO
RESTORE DATABASE DBName FROM DISK = 'E:DBName.bak' WITH REPLACE