日期:2014-05-18 浏览次数:20738 次
BACKUP DATABASE TEST TO DISK ='D:\HTML\sss.bak' WITH INIT, NOUNLOAD , NAME = N'' , password='sunlw' , NOSKIP , STATS = 100, DESCRIPTION = N'', NOFORMAT --该语句显示数据库的数据文件名和日志文件名 select * from sys.database_files RESTORE DATABASE TEST1 FROM DISK = 'D:\HTML\sss.bak' WITH RECOVERY, MOVE 'TEST' TO 'D:\HTML\sss.mdf', MOVE 'TEST_Log' TO 'D:\HTML\sss.ldf', password='sunlw'