Anda dapat mencoba ini:
CREATE UNIQUE CLUSTERED INDEX index_name ON TABLE (col1,col2)
atau
CREATE UNIQUE NONCLUSTERED INDEX index_name ON TABLE (col1,col2)
atau
ALTER TABLE [dbo].[TABLE] ADD CONSTRAINT
UNIQUE_Table UNIQUE CLUSTERED
(
col1,
col2
) ON [PRIMARY]