Share via


HasClusteredIndex Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

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

Syntax

object.HasClusteredIndex

Parts

  • object
    An 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.

Applies To:

See Also

Concepts