Analyze (Data Management)

License Level:BasicStandardAdvanced

Summary

Updates database statistics of business tables, feature tables, and delta tables, along with the statistics of those tables' indexes.

Usage

Syntax

Analyze_management (in_dataset, components)
ParameterExplanationData Type
in_dataset

The table or feature class to be analyzed.

Layer; Table View; Dataset
components

The component type to be analyzed.

  • BUSINESSUpdates business rules statistics.
  • FEATUREUpdates feature statistics.
  • RASTERUpdates statistics on raster tables.
  • ADDSUpdates statistics on added datasets.
  • DELETESUpdates statistics on deleted datasets.
String

Code Sample

This stand-alone Python script uses the Analyze tool to gather statistics for the indexes on the buisness table of the input dataset.

# Name: Analyze_Example.py
# Description: Gathers statistics for the indexes on the buisness table of the input dataset

# Import system modules
import arcpy

# Set local variables
inDataset = "c:/Connections/ninefour@gdb.sde/GDB.ctgPrimaryFeature"

# Execute Analyze
arcpy.Analyze_management(inDataset,"BUSINESS")

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
5/7/2015