Compartir a través de


FillFactor Property

Esta característica se quitará en una versión futura de Microsoft SQL Server. Evite utilizar esta característica en nuevos trabajos de desarrollo y tenga previsto modificar las aplicaciones que actualmente la utilizan.

The FillFactor property exposes the percent of each page used to store index data when the index is created.

Sintaxis

object.FillFactor [=value]

Parts

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

  • value
    A long integer from 0 through 100

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetFillFactor(LPLONG pRetVal);
HRESULT SetFillFactor(LONG NewValue);

Notas

Microsoft SQL Server primary keys are supported by unique indexes built on the columns participating in the PRIMARY KEY or UNIQUE key constraint. For the Key object, the FillFactor property only has meaning if the Type property reports SQLDMOKey_Primary.

FillFactor can only be set when an Index object is created. It is a read-only property if an Index object references an existing SQL Server index.

Setting FillFactor on index or key creation can cause unintended behavior. For more information, see CREATE INDEX (Transact-SQL).

Applies To: