Just to state this - the result of the Pinal Dave example - these are indexes similar to the following:
TestTable PK__TestTabl__3214EC2703317E3D CLUSTERED TestTable UQ__TestTabl__A259EE55060DEAE8 NONCLUSTERED
What can be explained as follows:
PK Clustered
If the table is created using the primary key, then this is the Clustered Table , and the default clustered index for the primary key , unless otherwise specified. (Tables without Heaps clustered index)
UQ Nonclustered
Non- SQL SQL usually creates any non-clustered indexes in the default table.
However, as Mark pointed out, since the table has a column with a UNIQUE , (Col1 INT NOT NULL UNIQUE) , MS SQL implements the constraint as a unique, non-clustered index in this column.
See also: Is a unique Sql Server key an index?
source share