CREATE TABLE [dbo].[sometable](
[ID] [bigint] IDENTITY(1,1) NOT NULL,
DATE_TIME smalldatetime NOT NULL,
DATA1 varchar(10),
DATA2 int,
... a bunch more columns,
CONSTRAINT [PK] PRIMARY KEY NONCLUSTERED
(
[ID] ASC,
[DATE_TIME] ASC
)ON INDEX_PARTITION_SCHEME]([DATE_TIME]),
CONSTRAINT [ix_UNIQUE] UNIQUE NONCLUSTERED
(
[DATE_TIME] ASC,
Data2 ASC,
Data3 ASC
) ON [INDEX_SMALLDATE_PARTITION_SCHEME]([DATE_TIME])
)ON DATA_SMALLDATE_PARTITION_SCHEME]([DATE_TIME])
|