SQL中利用脚本恢复数据库
编写人:CC阿爸
2014-6-15
在日常SQL数据库的操作中,如何恢复数据库
use master
drop database SCS1
RESTORE DATABASE SCS1 from disk=‘C:\Documents and Settings\kevinzhang\桌面\eee.bak‘
USE master
RESTORE DATABASE SCS1
from disk=‘C:\Documents and Settings\kevinzhang\桌面\eee.bak‘
WITH MOVE ‘SCS‘ TO ‘D:\DataBase\SCS1.mdf‘,
MOVE ‘SCS_log‘ TO ‘D:\DataBase\SCS1_log.ldf‘,
STATS = 10, REPLACE
时间: 2024-10-12 23:45:03