NoRecompute Property (SQL-DMO)

The NoRecompute property controls statistics generation when the Index object is used to create a Microsoft® SQL Server™ index.

Applies To

Index Object

Syntax

object.NoRecompute [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value True or False

Remarks

When True, SQL Server does not perform automatic data-distribution statistics update on the created index.

When False (default), automatic data-distribution statistics update is performed.

Use the UpdateIndexStatistics, UpdateStatistics, or UpdateStatisticsWith method to force an update of index statistics for SQL Server indexes not configured for automatic update. Use the UpdateStatisticsWith method of the Table object to enable or disable automatic update of data-distribution statistics for an existing index.

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetNoRecompute(LPBOOL pRetVal);

HRESULT SetNoRecompute(BOOL NewValue);

See Also
UpdateIndexStatistics Method UpdateStatisticsWith Method (Column, Index)
UpdateStatistics Method UpdateStatisticsWith Method (Table)

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.