I need to put a constraint or rule on the column: if it's not null, it should be unique. I am not good with constraints at all. Can they be conditional? Your help is appreciated.
In SQL Server 2008 you can use UNIQUE filtered INDEX.
Otherwise I believe there was a thread in MSDN in Database Design forum on this exact topic, I'll try to find it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.