I have a table divided by TRANSACTION_DATE_TIME.
The table has a column: ID.
I want to create a unique index for the ID on the partition diagram as:
CREATE UNIQUE NONCLUSTERED INDEX [IX_ID_ON_PS_DATETIME] ON [CRD].[TRANSACTION] ( [ID] ASC ) ON [PS_DATETIME_WEEKLY]([TRANSACTION_DATE_TIME])
but SQL says that "the partition column for a unique index must be a subset of the index key."
I really don't need the TRANSACTION_DATE_TIME column in this index.
How to create an index without using the TRANSACTION_DATE_TIME column?
source share