import arcgisscripting gp = arcgisscripting.create(9.3) gp.SetProduct("ArcEditor") try: gp.workspace = r"/home/sde/ptest/script/SDE_SQLServer.sde" # gp.workspace = r"/home/sde/ptest/script/SDE_Oracle.sde" fcs = gp.ListDatasets() print "Listing datasets:\n" for fc in fcs: print fc except: errMsg = gp.GetMessage(0) errMsg += gp.GetMessage(2) print "Error:" + str(errMsg)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.