verifyonly错误消息

时间:2013-01-30 10:49:01

标签: sql sql-server

我使用以下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.

我该如何解决这个问题?

1 个答案:

答案 0 :(得分: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 site以获取进一步的建议。