Kind of messy, but here is how I have accessed SDE feature classes in a dataset before. It is exporting all the feature class in each dataset in the target SDE.dsList = arcpy.ListDatasets("TFM.TFM_*", "Feature")
for ds in dsList:
fcList = arcpy.ListFeatureClasses("","",ds)
ds = str(ds).partition(".")[2]
print "Starting "+ds
arcpy.CreateFeatureDataset_management(output, ds, sr)
for feature in fcList:
featout = str(feature).partition(".")[2]
try:
if not arcpy.Exists(output+ds+"\\"+featout):
arcpy.FeatureClassToFeatureClass_conversion(feature, output+ds, featout)