ShrinkMethod ShrinkMethod ShrinkMethod Enum

Definition

The ShrinkMethod enumeration contains values that are used to specify the method that is used shrink a database file.

public enum class ShrinkMethod
public enum ShrinkMethod
Public Enum ShrinkMethod
Inheritance
ShrinkMethodShrinkMethodShrinkMethod

Fields

Default Default Default 0

Data in pages located at the end of a file is moved to pages earlier in the file. Files are truncated to reflect allocated space.

EmptyFile EmptyFile EmptyFile 3

Migrates all of the data from the referenced file to other files in the same filegroup. (DataFileand LogFile objects only).

NoTruncate NoTruncate NoTruncate 1

Data in pages located at the end of a file is moved to pages earlier in the file.

TruncateOnly TruncateOnly TruncateOnly 2

Data distribution is not affected. Files are truncated to reflect allocated space, recovering free space at the end of any file.

Remarks

The ShrinkMethod enumeration class is served by the Shrink method.

Applies to