I have almost always created my indexes in separate statements from the CREATE TABLE statement. Now I am working in an environment that uses DAC package deployments. For whatever reason, the indexes seem to be out of out order with the table definitions, which I will track down separate from this thread.
For here and now, I would like to the know inline index syntax for Included columns:
the inline index example in MS documentation is
CREATE TABLE t2 ( c1 INT, c2 INT, INDEX ix_1 NONCLUSTERED (c1,c2) );
My guess for INCLUDE columns below does not work
CREATE TABLE t3 ( c1 INT, c2 INT, c3 INT, INDEX ix_1 NONCLUSTERED (c1,c2) INCLUDE(c3) );
so what is the correct syntax?
jchang