DatabaseFile.Shrink(Int32, ShrinkMethod) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Shrinks a dbfile or a log file
public void Shrink (int newSizeInMB, Microsoft.SqlServer.Management.Smo.ShrinkMethod shrinkType);
member this.Shrink : int * Microsoft.SqlServer.Management.Smo.ShrinkMethod -> unit
Public Sub Shrink (newSizeInMB As Integer, shrinkType As ShrinkMethod)
Parameters
- newSizeInMB
- Int32
- shrinkType
- ShrinkMethod