I need to version n number of fc's which start with sde."ENT-QA". I need to select only those feature classes and run versioning for it. Can anyone help me in writing the query for selecting only fc's which start with sde."ENT-QA". Remeber ENT-QA is mentioned has quotes. Thanks in advance.
import arcpy arcpy.env.workspace= r"xyz.sde" fdList = arcpy.ListFeatureClasses("","","") for fc in fdList: print fc arcpy.RegisterAsVersioned_management(fc, "NO_EDITS_TO_BASE") print "fc registered"