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.

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

1 participant