Skip to content

Commit

Permalink
Fix log backup order
Browse files Browse the repository at this point in the history
  • Loading branch information
f3rland committed Feb 19, 2016
1 parent de3a6a0 commit 6b0d022
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ManagingTestData/sp_automate_restore.sql
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ AS
backupFile LIKE '%_LOG_%'
AND backupFile LIKE '%' + @backupDBName + '%'
AND REPLACE(LEFT(RIGHT(backupFile,19),15),'_','') > @ldb
ORDER BY backupFile
OPEN backupFiles
-- Loop through all the files for the database
FETCH NEXT FROM backupFiles INTO @backupFile
Expand Down

0 comments on commit 6b0d022

Please sign in to comment.