Alter Version (Data Management)
Summary
Alters the database version's properties of name, description, and access permissions.
Usage
- Versioning tools only work with enterprise geodatabase data. Personal and file geodatabases do not support versioning.
- Versions are not affected by changes occurring in other versions of the database.
- A version's permission can only be changed by its owner.
License:
Versions can only be created and edited with the ArcGIS for Desktop Standard and ArcGIS for Desktop Advanced license levels.
Syntax
AlterVersion_management (in_workspace, in_version, {name}, {description}, {access})
Parameter | Explanation | Data Type |
in_workspace |
The enterprise 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.
| String |
Code Sample
AlterVersion example:
The following stand-alone Python script uses the AlterVersion Goeprocessing tool to alter a version.
# Name: AlterVersion_Example.py
# Description: Changes the name of a version
# 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
ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013