ShrinkMethod Enumeration
The ShrinkMethod enumeration contains values that are used to specify the method that is used shrink a database file.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
| Member name | Description | |
|---|---|---|
| Default | 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 | ||
| NoTruncate | Data in pages located at the end of a file is moved to pages earlier in the file. | |
| TruncateOnly | Data distribution is not affected. Files are truncated to reflect allocated space, recovering free space at the end of any file. |
Show: