This document is archived and information here might be outdated.  Recommended version.


IDataServerManagerAdmin.ShrinkGeodatabase Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesGDB > ESRI.ArcGIS.DataSourcesGDB > Interfaces > ID > IDataServerManagerAdmin Interface > IDataServerManagerAdmin.ShrinkGeodatabase Method
ArcGIS Developer Help

IDataServerManagerAdmin.ShrinkGeodatabase Method

Shrinks the size of a Geodatabase and frees up unused space.

[Visual Basic .NET]
Public Sub ShrinkGeodatabase ( _
    ByVal gdbName As String _
)
[C#]
public void ShrinkGeodatabase (
    string gdbName
);
[C++]
HRESULT ShrinkGeodatabase(
  BSTR gdbName
);
[C++]
Parameters
gdbName [in]

gdbName is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

This method frees up unused space in the Geodatabase data file (.mdf). 

Remarks

Perform this periodically as a regular maintenance operation.  You must be a server administrator to execute this method.

See Also

IDataServerManagerAdmin Interface