0

我使用以下 sql 语句

RESTORE VERIFYONLY FROM DISK = 'F:\testBackup\test_2013-01-18.BAK'
GO

这样做时出现此错误:

Attempting to restore this backup may encounter storage space problems. Subsequent messages will provide details.
The path specified by "C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\test.mdf" 
is not in a valid directory.
Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\test_log.ldf" 
failed with the operating system error 3(failed to retrieve text for this error. Reason: 15100).
Msg 3189, Level 16, State 1, Line 1
Damage to the backup set was detected.
Msg 3013, Level 16, State 1, Line 1
VERIFY DATABASE is terminating abnormally.

我该如何解决?

4

1 回答 1

0

尝试使用这个:

RESTORE VERIFYONLY
   FROM DISK = 'F:\testBackup\test_2013-01-18.BAK'
   WITH NORECOVERY, 
      MOVE 'test_Data'  
          TO '<YourPath>\test.mdf', 
      MOVE 'test_Log' 
          TO '<YourPath>\test_log.ldf';

您可以查看MSDN 网站以获取更多建议。

于 2013-01-30T11:00:23.123 回答