Skip to content

Commit 45da7a6

Browse files
authored
Merge pull request #3132 from BjornNordblom/CollateFix_sp_AllNightLog
Fixes a collection error when server collation is not set to Latin1_G…
2 parents 65adb27 + dacb459 commit 45da7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sp_AllNightLog.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ DiskPollster:
578578
SELECT fl.BackupFile
579579
FROM @FileList AS fl
580580
WHERE fl.BackupFile IS NOT NULL
581-
AND fl.BackupFile NOT IN (SELECT name from sys.databases where database_id < 5)
581+
AND fl.BackupFile COLLATE DATABASE_DEFAULT NOT IN (SELECT name from sys.databases where database_id < 5)
582582
AND NOT EXISTS
583583
(
584584
SELECT 1

0 commit comments

Comments
 (0)