DatabaseFile.Shrink(Int32, ShrinkMethod) 方法

定義

縮減資料庫檔案或日誌檔案

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)

參數

newSizeInMB
Int32
shrinkType
ShrinkMethod

適用於