views:

37

answers:

1

I want an index on a non-primary key column, but this column may have nulls in it. I find on a normal unique index, it (rightly so) only allows one null.

Is that possible?

and what is the syntax for this?

+3  A: 
CREATE INDEX idxname ON table(col1);

See MSDN

Jonathan Leffler
yep, i probably should've looked up how the syntax to create an index worked before i posted that question!
RoboShop