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 VERIFYONLYfrom 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;