Parsing an entire SDE database searching for a field for export

Discussion created by hlouie on Mar 1, 2012
Latest reply on Mar 1, 2012 by rgrichards
I'm having difficulties on where to start, python or oracle or sql?

I'm wanting to parse through and entire SDE database (features classes, tables, everything...) searching for a field (unique_pk) and exporting the numbers to a txt file.  Some feature layers, tables do not have the "unique_pk" field, duplicates "unique_pk" and nulls do exist.  Just want a complete dump of the field.