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

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...