Show Navigation | Hide Navigation
You are here:
Writing geoprocessing scripts > Scripting Object: Properties and methods > Properties and Methods

QualifyTableName method

Release 9.1
Last modified August 19, 2005
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Properties and Methods"

Related Topics

Prefixes a name string with the database.username, if required. This method is used in scripting only.


object.QualifyFieldName(InputTableName as String, [Workspace]) as String

Part Description
object The instantiated geoprocessor object
InputTableName Specifies which table will be prefixed
Workspace Specifies the workspace in which the table can be found


from win32com.client import Dispatch
gp = Dispatch("esriGeoprocessing.GpDispatch.1")

# Create the list of input featureclasses.
gp.Workspace = "Database Connections\\Calgary.sde\\transportation"
fcs = gp.Listfeatureclasses()
fc = fcs.Next()
while fc:
    outfc = gp.ValidateTableName(fc, "Database Connections\\Calgary.sde\\clip")
    # Qualify the clip fc name as it is owned by Grace.
    clipfc = gp.QualifyTableName("Grace", "study_area", "Connections\\Calgary.sde")
        gp.Clip(fc, clipfc, outfc)
        print gp.GetMessages(2)
print "Successfully clipped " + fc

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.