Browsing index pages (2 articles)
↧
Unique index on computed column when contributing columns are already unique
I have a table like this:CREATE TABLE dbo.DiscountBarcodeList( ID int NOT NULL IDENTITY CONSTRAINT PK_DiscountBarcodeList PRIMARY KEY CLUSTERED, Discount int NOT NULL CONSTRAINT...
View ArticleAnswer by Paul White for Unique index on computed column when contributing...
It's a trade-off only you can really decide on.You'll already have a Split-Sort-Collapse operator combination added to any plans that update Discount or CodeNumber to avoid false transient unique key...
View Article
Browsing index pages (2 articles)