Register As Versioned (Data Management)

License Level:BasicStandardAdvanced

Summary

Registers ArcSDE dataset as versioned.

Usage

Syntax

RegisterAsVersioned_management (in_dataset, {edit_to_base})
ParameterExplanationData Type
in_dataset

Name of the dataset to be registered as versioned.

Table View; Feature Dataset
edit_to_base
(Optional)

Determines whether edits to the default version will be moved to the base tables.

  • NO_EDITS_TO_BASEDataset will not be versioned with the option to move edits to base. This is the default.
  • EDITS_TO_BASEDataset will be versioned with the option of moving edits to base.
Boolean

Code Sample

RegisterAsVersioned example (stand-alone script)

The following stand-alone script demonstrates how to use the RegisterAsVersioned tool to register a dataset as versioned.

# Name: RegisterAsVersioned_Example.py
# Description: Registers dataset as versioned

# Import system modules
import arcpy

# Set local variables
datasetName = "Database Connections/ninefour@gdb.sde/ninefour.GDB.ctgFuseFeature"

# Execute RegisterAsVersioned
arcpy.RegisterAsVersioned_management( datasetName, "NO_EDITS_TO_BASE")

Environments

Related Topics

Licensing Information

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