The only way to truly verify a backup is to perform a backup on another server. When RESTORE VERIFYONLY reports it's okay, it does not mean that the file is restoreable. Here's some code that I use to grab the newest full backup from a specified directory, you'd just need to modify it to your requirements:DECLARE @remotePath varchar(100), @localPath varchar(100), @whichFile varchar(1000), @cmd nvarchar(4000), @filename sysnameSELECT @remotePath = '\\Server1\G$\Backup\dbName\', @localPath = 'F:\Backup\dbName\'CREATE TABLE #DeleteOldFiles(DirInfo VARCHAR(7000))SELECT @cmd = 'dir "' + @remotePath + '*.BAK" /OD'INSERT INTO #DeleteOldFilesEXEC master..xp_cmdshell @cmdSELECT @whichFile = SUBSTRING(DirInfo, LEN(DirInfo) - PATINDEX('% %', REVERSE(DirInfo)) + 2, LEN(DirInfo)) FROM #DeleteOldFilesWHERE SUBSTRING(DirInfo, 1, 10) = (SELECT MAX(SUBSTRING(DirInfo, 1, 10)) FROM #DeleteOldFiles)SET @cmd = 'del ' + @localPath + '*.* /Q /F'--PRINT @cmdEXEC master..xp_cmdshell @cmd, NO_OUTPUTSET @cmd = 'xcopy ' + @remotePath + @whichFile + ' ' + @localPath + ' /Y'--PRINT @cmdEXEC master..xp_cmdshell @cmd, NO_OUTPUTDROP TABLE #DeleteOldFiles
Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/Subscribe to my blog"Let's begin with the premise that everything you've done up until this point is wrong."