How do I list the Schema name of an Element in an SDE database (Newbie Q)

Discussion created by pjsmyth on Jul 14, 2013
Latest reply on Jul 15, 2013 by arekmatoszka
Hi All

I am new to all this, so thanks for your patience:D.

I used the code below to list the Name and data type of an element in an SDE database.

What I really need to do now is identify and write the Schema(element owner) for each element as well, as I have a number of Schemas in the Database.

import arcpy

# Create a Describe object
desc = arcpy.Describe(r"Database Connections\SDCM_SIS in PRD as 044231 DC.sde")

# Print some Describe Object properties

for child in desc.children:
    print "\t%s,%s" % (child.name,child.dataType)