HasClusteredIndex Property

SQL-DMO

SQL-DMO

HasClusteredIndex Property

The HasClusteredIndex property returns TRUE when a clustered index is defined on the referenced table.

Applies To
Table Object
Syntax

object.HasClusteredIndex

Parts

object

Expression that evaluates to an object in the Applies To list

Data Type

Boolean

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetHasClusteredIndex(LPBOOL pRetVal);

Remarks

A Microsoft® SQL Server™ clustered index orders table data using index values, structuring a table and building a sorted index for a table. For any given table, SQL Server supports, at most, a single clustered index.

See Also

Using Clustered Indexes