Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

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

$
0
0
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.



Code:

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)


Viewing all articles
Browse latest Browse all 2485

Latest Images

Trending Articles



Latest Images