Skip to content

Commit 3ca5ec1

Browse files
authored
Merge pull request #1454 from BrentOzarULTD/Issue_1425
Add time zone to inserts
2 parents 3ec5a3c + b03e4be commit 3ca5ec1

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
@@ -1458,15 +1458,15 @@ END
14581458

14591459
SET @StringToExecute += N'INSERT ' + QUOTENAME(@WriteBackupsToListenerName) + N'.' + QUOTENAME(@WriteBackupsToDatabaseName) + N'.dbo.backupset
14601460
'
1461-
SET @StringToExecute += N' (database_name, database_guid, backup_set_uuid, type, backup_size, backup_start_date, backup_finish_date, media_set_id,
1461+
SET @StringToExecute += N' (database_name, database_guid, backup_set_uuid, type, backup_size, backup_start_date, backup_finish_date, media_set_id, time_zone,
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
14651465
ELSE + N'has_bulk_logged_data)' + @crlf
14661466
END
14671467

14681468
SET @StringToExecute +=N'
1469-
SELECT database_name, database_guid, backup_set_uuid, type, backup_size, backup_start_date, backup_finish_date, media_set_id,
1469+
SELECT database_name, database_guid, backup_set_uuid, type, backup_size, backup_start_date, backup_finish_date, media_set_id, time_zone,
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

0 commit comments

Comments
 (0)