arcpy.ListDatasets for a specific SDe owner

178
3
11-08-2019 05:41 AM
JoseSanchez
Occasional Contributor III

Hello everyone,

How can I list only Feature Datasets, Feature Classes and Tables owned by a specific owner?

I am working on SDE and would like only to select layers owned by a specific account.

I am using Python arcpy.ListDatasets

Thanks

0 Kudos
3 Replies
JohannesBierer
Regular Contributor
0 Kudos
JoshuaBixby
MVP Esteemed Contributor

Since those ArcPy functions and others like ArcPy Walk don't include owner as a parameter, how this gets addressed depends on the back-end DBMS.  What DBMS are you working with?

0 Kudos
JoseSanchez
Occasional Contributor III

Hello everyone,

This is how I did it

myDatasetString = dataset
if ( myDatasetString.find(prefixOutputOwner) != -1):