Book a Demo

Author Topic: Conditional indexes NOT captured by DB Reverse-engineering  (Read 2865 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Conditional indexes NOT captured by DB Reverse-engineering
« on: August 11, 2020, 04:20:54 pm »
We have a database which needs to have conditional indexes due to data quality issues:

Code: [Select]
CREATE UNIQUE NONCLUSTERED INDEX [DBCaption] ON [dbo].[NamedDB]
(
[DBCaption] ASC
)
WHERE ([DBCaption] IS NOT NULL)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO

The conditional portion:
Code: [Select]
WHERE ([DBCaption] IS NOT NULL)is NOT captured during reverse -engineering.

Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!