Freigeben über


DatabaseFile.Shrink(Int32, ShrinkMethod) Method

Definition

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

Applies to