Analyze (Data Management)

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 = "Database Connections/ninefour@gdb.sde/GDB.ctgPrimaryFeature"

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

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcView: No
ArcEditor: Yes
ArcInfo: Yes

10/27/2014