Create Versioned View (Data Management)

Summary

Creates a versioned view on a table or feature class.

Legacy:

This is a deprecated tool. This functionality is no longer needed because versioned views are automatically created when data is registered as versioned.

Usage

  • The table or feature class must be registered as versioned.

Parameters

LabelExplanationData Type
Input Table or Feature Class

The input table or feature class for which a versioned view will be created.

Table View
Versioned View Name
(Optional)

The name for the versioned view that is created. If nothing is specified the output versioned view name is the name of the table or feature class with _evw appended to the end.

String

Derived Output

LabelExplanationData Type
Output Table or Feature Class

arcpy.management.CreateVersionedView(in_dataset, {in_name})
NameExplanationData Type
in_dataset

The input table or feature class for which a versioned view will be created.

Table View
in_name
(Optional)

The name for the versioned view that is created. If nothing is specified the output versioned view name is the name of the table or feature class with _evw appended to the end.

String

Derived Output

NameExplanationData Type
out_dataset

Code sample

CreateVersionedView example (Python window)

The following Python window script demonstrates how to use the CreateVersionedView function.

import arcpy
arcpy.management.CreateVersionedView("Database Connections\\admin.sde\\bender.GDB.cities", "cities_MV_view")

Environments

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes