Condividi tramite


Database.Shrink(Int32, ShrinkMethod) Method

Definition

Shrinks a database

public void Shrink (int percentFreeSpace, Microsoft.SqlServer.Management.Smo.ShrinkMethod shrinkMethod);
member this.Shrink : int * Microsoft.SqlServer.Management.Smo.ShrinkMethod -> unit
Public Sub Shrink (percentFreeSpace As Integer, shrinkMethod As ShrinkMethod)

Parameters

percentFreeSpace
Int32
shrinkMethod
ShrinkMethod

Applies to