Select to view content in your preferred language

Python script to register Data as versioned

911
1
01-16-2019 12:09 PM
RanjitChaturvedi
Emerging Contributor

Hi Everyone,

I am looking for a python script which should be able to register data as versioned without the option to move edits to base for all the feature classes inside the feature dataset, tables. 

Regards,

Ranjit

Tags (1)
0 Kudos
1 Reply
KhairulAmri2
Occasional Contributor

here is basic syntax to enable versioning

# Import system modules
import arcpy

# Set local variables
datasetName = "c:/Connections/ninefour@gdb.sde/ninefour.GDB.ctgFuseFeature"

# Execute RegisterAsVersioned
arcpy.RegisterAsVersioned_management(datasetName, "NO_EDITS_TO_BASE")

regards.

amri

0 Kudos