语言

DatabaseFile.Shrink(Int32, ShrinkMethod) 方法

定义

收缩 dbfile 或日志文件

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

适用于