Skip to content

Commit

Permalink
#3100 sp_DatabaseRestore BackUpFile typo
Browse files Browse the repository at this point in the history
Fixes one occurrence of BackUpFile instead of BackupFile that broke case-sensitive installs. Closes #3100.
  • Loading branch information
BrentOzar committed Jun 6, 2022
1 parent d752cd5 commit d45cda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sp_DatabaseRestore.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ BEGIN
BackupFile LIKE N'%' + @Database + '%'
AND
(@StopAt IS NULL OR REPLACE( RIGHT( REPLACE( BackupFile, RIGHT( BackupFile, PATINDEX( '%_[0-9][0-9]%', REVERSE( BackupFile ) ) ), '' ), 16 ), '_', '' ) <= @StopAt)
ORDER BY BackUpFile DESC;
ORDER BY BackupFile DESC;

-- Load FileList data into Temp Table sorted by DateTime Stamp desc
SELECT BackupPath, BackupFile INTO #SplitDiffBackups
Expand Down

0 comments on commit d45cda9

Please sign in to comment.