Alter Version (Data Management)

Summary

Alters the database version's properties of name, description, and access permissions.

Usage

Syntax

AlterVersion_management (in_workspace, in_version, {name}, {description}, {access})
ParameterExplanationData Type
in_workspace

The ArcSDE geodatabase where the version to be altered is located.

Workspace
in_version

Name of the version to be altered.

String
name
(Optional)

The new name of the version.

String
description
(Optional)

The new description for the version.

String
access
(Optional)

Set/Change the access permissions.

  • PRIVATEOnly the owner may view the version and modify available feature classes. This is the default.
  • PUBLIC Any user may view the version and modify available feature classes.
  • PROTECTEDAny user may view the version, but only the owner may modify available feature classes.
String

Code Sample

The following stand-alone python script uses the Alter Version Goeprocessing Tool to alter a version.

# Name: AlterVersion_Example.py
# Description: Changes the name of a version
# Author: ESRI

# Import system modules
import arcpy

# Set local variables
inWorkspace = "Database Connections/ninefour@gdb.sde"
versionName = "myVersion"
newName = "myVersion2"

# Execute AlterVersion
arcpy.AlterVersion_management(inWorkspace, versionName, newName, "#", "PUBLIC")

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcView: No
ArcEditor: Yes
ArcInfo: Yes

10/27/2014