USE pubs
GO
if exists (select*from sysobjects where name='Clustered_Dupes'and type='U')
DROPTABLE Clustered_Dupes
GO
CREATETABLE Clustered_Dupes
(Col1 char(5) NOTNULL,
Col2 intNOTNULL,
Col3 char(3) NULL,
Col4 char(6) NOTNULL,
Col5 floatNOTNULL)
GO
CREATE CLUSTERED INDEX Cl_dupes_col1 ON Clustered_Dupes(col1)
GO
SELECTfirst, indid, keycnt, name FROM sysindexes
WHERE id = object_id ('Clustered_Dupes')
GO
INSERT Clustered_Dupes VALUES ('ABCDE', 123, null, 'CCCC', 4567.8)
GO
SELECTfirst, root, id,indid FROM sysindexes
WHERE id = object_id('Clustered_Dupes')
GO
INSERT Clustered_Dupes VALUES ('ABCDE', 456, null, 'DDDD', 4567.8)
INSERT Clustered_Dupes VALUES ('ABCDE', 64, null, 'EEEE', 4567.8)
GO