SQL中利用脚本恢复数据库
编写人:CC阿爸
2014-6-15
在日常SQL数据库的操作中,如何恢复数据库
use master
drop database SCS1
RESTORE DATABASE SCS1 from disk='C:Documents and Settingskevinzhang桌面eee.bak'
USE master
RESTORE DATABASE SCS1
from disk='C:Documents and Settingskevinzhang桌面eee.bak'
WITH MOVE 'SCS' TO 'D:DataBaseSCS1.mdf',
MOVE 'SCS_log' TO 'D:DataBaseSCS1_log.ldf',
STATS = 10, REPLACE