Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Database toolset > Tools

Compact (Data Management)

Release 9.3
Last modified March 8, 2012
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Compacts a personal geodatabase or file geodatabase. Compacting rearranges how the geodatabase is stored on disk, often reducing its size and improving performance.


Usage tips

Command line syntax
An overview of the Command Line window
Compact_management <in_workspace>

Parameter Explanation Data Type
<in_workspace>

The file or personal geodatabase to be compacted

Workspace
Data types for geoprocessing tool parameters


Command line example

compact_management d:\landuse.mdb

Scripting syntax
About getting started with writing geoprocessing scripts
Compact_management (in_workspace)

Parameter Explanation Data Type
in_workspace (Required)

The file or personal geodatabase to be compacted

Workspace

Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "h:/workspace"
gp.toolbox = "management"
gp.compact("d:\landuse.mdb")

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.