Disclaimer: It may be possible to create a CONSTRAINT that allows nulls. I frankly didn't have time to look, but was so astonished to not see anyone mention that concern in 13 years. I only recently discovered filtered indexes could be unique. Please comment if there's a better alternative.
↧
Comment by Simon_Weaver on How can I create a unique constraint on my column (SQL Server 2008 R2)?
↧