直接右擊系統數據庫master,新建查詢數據庫
執行如下SQL代碼:
RESTORE DATABASE WF
FROM DISK = 'D:\ccflow\DataBase\WF_SQL2005.bak'
with replace,
MOVE 'WF' TO 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\WF.mdf',
MOVE 'WF_log' TO 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\WF_log.ldf'spa
註釋:WF是你須要還原的數據庫名稱,WF_SQL2005..bak是你須要還原的備份文件。
OK,搞定。it