ArcObjects Library Reference  (GeoDatabase)    

IDatabaseCompact Interface

Provides access to members for compacting an Access database.

Product Availability

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

Members

Description
Method CanCompact True if this dataset can be compacted.
Method Compact Compacts the database.

CoClasses that implement IDatabaseCompact

CoClasses and Classes Description
VersionedWorkspace VersionedWorkspace Object.
Workspace Workspace Object.
WorkspaceName ESRI WorkspaceName object.

Remarks

IDatabaseCompact is an optional interface supported by File and Personal geodatabases (Access Workspaces) which allows compaction of an Access database using the services of the Jet Engine or File gedoatabases. After using a Personal or File geodatabase, the database may become fragmented on disk. Compact rearranges how a fragmented personal geodatabase is stored on disk or rearranges the files contained within a File Geodatabase workspace. Compacting a personal or File geodatabase often reduces its size and improves its performance.

Using the IDatabaseCompact interface requires you to open a connection to the workspace. The Compact method on ILocaDatabaseCompact takes a WorkspaceName object as an argument, so its not necessary to open the workspace before compacting it.

Example

IDatabaseCompact Example

 


Feedback Send feedback on this page