Skip to content

Conversation

@ReeceGoding
Copy link
Contributor

@ReeceGoding ReeceGoding commented Nov 7, 2025

A one-line PR!

Closes #3727. Let the screenshots speak for themselves.

Before
Before

After
After

I couldn't be bothered to make my own database packed full of temporal tables, so I put my faith in Microsoft and loaded up this copy of WideWorldImporters. Once you have that loaded, just run EXEC sp_BlitzIndex @Databasename = 'WideWorldImporters', @Mode = 4; and you will see the difference.

I unfortunately couldn't use the fix I preferred in the issue. The second part of the ORDER BY in the final output sorts by the auto-increment ID column br.check_id. I couldn't overcome that sort without making bigger changes. On the bright side, the check_id thing is what made this a one-line PR.

Copy link
Member

@BrentOzar BrentOzar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request! Looks good, merging into the dev branch, will be in the next release with credit to you in the release notes.

@BrentOzar BrentOzar added this to the 2025-12 Release milestone Nov 10, 2025
@BrentOzar BrentOzar merged commit 571b246 into BrentOzarULTD:dev Nov 10, 2025
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sp_BlitzIndex: sort the list of temporal tables in mode 4

2 participants