Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Verify all backups in a media set

$
0
0

Good morning,

I have multiple .bak files that I need to verify for one database. However, an issue has occurred when it would be beneficial for me to be able to get an error (if there is one) for all of the files. Example, if the third and fifth bak file is invalid, I would like to receive an error message for both files. The following is the code I have so far. Should the continue_after_error clause result in multiple error messages if there are multiple errors? Any advice would be greatly appreciated.

RESTORE VERIFYONLY 
from disk = 'C:\bak\DB1.bak', 
disk = 'C:\bak\DB2.bak', 
disk = 'C:\bak\DB3.bak', 
disk = 'C:\bak\DB4.bak', 
disk = 'C:\bak\DB5.bak'
WITH CONTINUE_AFTER_ERROR; 


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>