Skip to content

sp_BlitzIndex: add warning for nonclustered indexes on temporal table history tables that will break merge statements #3618

@ReeceGoding

Description

@ReeceGoding

Is your feature request related to a problem? Please describe.
There are some SQL Server bugs that you can only trip if you have a specific indexing situation. For example, this article lists a few MERGE bugs and some of them require specific indexing situations. The clearest such example is the eighth issue. Namely, that MERGEs can fail against a temporal table if its history table has a non-clustered index.

Describe the solution you'd like
Add a new high-priority category to the mode 0 and 4 outputs (something like "bug-prone indexing") and include this specific example in it.

Describe alternatives you've considered
Maybe just add it to the generic notice that you have temporal tables?

Are you ready to build the code for the feature?
I'm happy to do the specific example that I've mentioned, i.e. the eighth issue in the link. I'm too pressed for time to go seek out other index-related SQL Server bugs, confirm what versions they exist in, and then implement extra checks for them. Besides, I bet that Brent already knows of a bunch.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions