电脑技术学习

SQL Server 2005数据库恢复脚本示例

dn001
SQL Server 2005数据库恢复:

脚本示例如下:

RESTORE DATABASE [gvILMSTest]

--FILE = N'Midata', FILE = N'Milog'

FROM DISK = N'E:DATAVLMS DATA BAKgvILMS_backup_200708120000.bak'

WITH FILE = 1,

MOVE N'gvilms' TO N'E:gvILMSVLMSTest.MDF',

MOVE N'gvilms' TO N'E:gvILMSVLMSTest.LDF',

NOUNLOAD,REPLACE, STATS = 10