Skip to main content
1 of 2
Farid Cheraghi
  • 8.8k
  • 1
  • 24
  • 55
arcpy.env.workspace = r'Database Connections\adminCon.sde'
arcpy.MakeFeatureLayer_management(r'Database Connections\adminCon.sde\GISADMIN.Buildings', 'fl')
arcpy.ChangeVersion_management('fl', "TRANSACTIONAL", "GISADMIN.Oli")
arcpy.ChangeVersion_management('fl', "TRANSACTIONAL", "sde.DEFAULT")

For further information check:

How to get a search cursor on a particular version in arcpy

Farid Cheraghi
  • 8.8k
  • 1
  • 24
  • 55