gv
2007-10-22 15:11:30 UTC
Hi all,
How would I capture the output of the results of the code below?
I want to check the file if "The backup set is valid." or not
before I restore. This will be automated.
I will send an email to a few people if not valid.
DECLARE @cmd VARCHAR(1000)
SET @cmd = 'RESTORE VERIFYONLY FROM DISK = ''' + @Dsk_Path + ''''
EXEC(@cmd)
thanks
gv
How would I capture the output of the results of the code below?
I want to check the file if "The backup set is valid." or not
before I restore. This will be automated.
I will send an email to a few people if not valid.
DECLARE @cmd VARCHAR(1000)
SET @cmd = 'RESTORE VERIFYONLY FROM DISK = ''' + @Dsk_Path + ''''
EXEC(@cmd)
thanks
gv