Skip to content

Commit 1322e04

Browse files
committed
Make sure we are not touching system databases.
1 parent 428a9fc commit 1322e04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sp_AllNightLog.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ DiskPollster:
535535
SELECT fl.BackupFile
536536
FROM @FileList AS fl
537537
WHERE fl.BackupFile IS NOT NULL
538+
AND fl.BackupFile NOT IN (SELECT name from sys.databases where database_id < 5)
538539
AND NOT EXISTS
539540
(
540541
SELECT 1

0 commit comments

Comments
 (0)