This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > DataSourcesGDB > ESRI.ArcGIS.DataSourcesGDB > Interfaces > ID > IDataServerManagerAdmin Interface > IDataServerManagerAdmin.ShrinkGeodatabase Method (ArcObjects .NET 10.4 SDK) |
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
This method frees up unused space in the Geodatabase data file (.mdf).
Perform this periodically as a regular maintenance operation. You must be a server administrator to execute this method.