HasIndex 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 HasIndex property returns TRUE if at least one index, clustered or nonclustered, is defined on the referenced Microsoft SQL Server table.

Syntax

object
.HasIndex

Parts

  • object
    An expression that evaluates to an object in the Applies To list

Data Type

Boolean

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetHasIndex(LPBOOL pRetVal);

Applies To: