Alter Version (Data Management)
Summary
Alters the database version's properties of name, description, and access permissions.
Usage
- Versioning tools only work with ArcSDE 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 ArcEditor and ArcInfo license levels.
Syntax
AlterVersion_management (in_workspace, in_version, {name}, {description}, {access})
Parameter | Explanation | Data 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.
| 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