ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Register As Versioned

Available with Standard or Advanced license.

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Registers ArcSDE dataset as versioned.

Usage

  • Versioning tools only work with datasets in an ArcSDE geodatabase. File and Personal geodatabases don't support versioning.

  • Registering a feature dataset as versioned registers all feature classes within the feature dataset as versioned.

  • Versions are not affected by changes occurring in other versions of the geodatabase.

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_BASE —Dataset will not be versioned with the option to move edits to base. This is the default.
  • EDITS_TO_BASE —Dataset 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

  • Current Workspace

Licensing information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Versions toolset
  • An overview of versioning
  • The version editing process
  • A quick tour of reviewing conflicts
  • What is a version?
  • Version scenarios
  • A quick tour of registering and unregistering data as versioned

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal