| title | SET UNIQUE Command | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 01/19/2017 | |
| ms.prod | sql | |
| ms.prod_service | connectivity | |
| ms.reviewer | ||
| ms.technology | connectivity | |
| ms.topic | conceptual | |
| helpviewer_keywords |
|
|
| ms.assetid | 1f69e31e-4599-47cc-ac89-b86fba8703c5 | |
| author | David-Engel | |
| ms.author | v-daenge |
Specifies whether records with duplicate index key values are maintained in an index file.
SET UNIQUE ON | OFF
ON
Specifies that any record with a duplicate index key value not be included in the index file. Only the first record with the original index key value is included in the index file.
OFF
(Default.) Specifies that records with duplicate index key values be included in the index file.
An index file retains its SET UNIQUE setting when you issue REINDEX. For more information, see INDEX.