Saturday, 29 August 2015

enterprise geodatabase - Listing ArcSDE versions using ArcPy?


I have an ArcSDE geodatabase with different versions for each user.


How can I list each version using ArcPy?



Answer



There is a function on arcpy called ListVersions. Here's online help for it.



    >>> print (arcpy.ListVersions('bigiron.sde'))
[u'BILLY.VersionOne', u'JOE.2B8E86', u'S.DEFAULT']
>>>

No comments:

Post a Comment