The Clustered property reports index clustering on Microsoft® SQL Server™ primary keys.
object.Clustered [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | True or False |
The Clustered property has meaning when the Key object references a SQL Server table primary key. If the Key object references a foreign key, the value is always False.
If True, the referenced primary key either has, or will be created with, a clustered index supporting it.
If False, the referenced primary key has, or will be created with, a nonclustered index. The default for new Key objects is False.
Boolean
Read/write before the SQL Server primary key is created. Read-only when the Key object references an existing primary key.
HRESULT GetClustered(LPBOOL pRetVal);
HRESULT SetClustered(BOOL NewValue);