DatabaseFile.Shrink(Int32, ShrinkMethod) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
縮減資料庫檔案或日誌檔案
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