Database.Shrink(Int32, ShrinkMethod) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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