Skip to content

Commit 43a829e

Browse files
committed
Comma chameleon
Dynamic SQL giveth, and dynamic SQL taketh away
1 parent 36b7bc4 commit 43a829e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sp_BlitzBackups.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,15 +1462,15 @@ END
14621462
compressed_backup_size, recovery_model, server_name, machine_name, first_lsn, last_lsn, user_name, compatibility_level,
14631463
is_password_protected, is_snapshot, is_readonly, is_single_user, has_backup_checksums, is_damaged, ' + CASE WHEN @ProductVersionMajor >= 12
14641464
THEN + N'encryptor_type, has_bulk_logged_data)' + @crlf
1465-
ELSE + N', has_bulk_logged_data)' + @crlf
1465+
ELSE + N'has_bulk_logged_data)' + @crlf
14661466
END
14671467

14681468
SET @StringToExecute +=N'
14691469
SELECT database_name, database_guid, backup_set_uuid, type, backup_size, backup_start_date, backup_finish_date, media_set_id,
14701470
compressed_backup_size, recovery_model, server_name, machine_name, first_lsn, last_lsn, user_name, compatibility_level,
14711471
is_password_protected, is_snapshot, is_readonly, is_single_user, has_backup_checksums, is_damaged, ' + CASE WHEN @ProductVersionMajor >= 12
14721472
THEN + N'encryptor_type, has_bulk_logged_data' + @crlf
1473-
ELSE + N', has_bulk_logged_data' + @crlf
1473+
ELSE + N'has_bulk_logged_data' + @crlf
14741474
END
14751475
SET @StringToExecute +=N'
14761476
FROM msdb.dbo.backupset b

0 commit comments

Comments
 (0)