jsn

How do I check if a domain already exists?

Discussion created by jsn on Sep 19, 2011
Latest reply on May 9, 2012 by lpinner
Hi all,

how do I get the domains description in a SDE connection? 

Or how do I check if a domain already exists?

Found this code but it does not run:
desc = arcpy.describe(SDEConnection)
AttributeError: 'module' object has no attribute 'describe'
>>>



arcpy.env = SDEConnection

desc = arcpy.describe(SDEConnection)
domains = desc.Domains
for domain in domains:
    print domain

Outcomes