Create Version (Data Management)

Creates a new version of the specified database.

Usage tips


CreateVersion_management (in_workspace, parent_version, version_name, access_permission)
Parameter Explanation Datatype
Input Workspace (Required)

The ArcSDE geodatabase that contains the parent version and will contain the new version. The default is to use the workspace defined in the environment settings.

Parent Version (Required)

The geodatabase, or version of a geodatabase, on which the new version will be based.

Version Name (Required)

The name of the version to be created.

Access Permission (Optional)

Set the permission access level for the version.

Data types for geoprocessing tool parameters

Script Example

import arcgisscripting
gp = arcgisscripting.create()

gp.toolbox = "management"
gp.createversion("Database Connections\Connection to workspace.sde", "sde.DEFAULT", "newVersion", "PRIVATE")

See Also

  • Alter Version (Data Management)
  • Delete Version (Data Management)
  • Reconcile Version (Data Management)
  • Register as Versioned (Data Management)
  • Unregister as Versioned (Data Management)