Have you ever wanted to simply plug a SQL statement into a GIS tool to get the results into your GIS, but the SQL that you need to use is 400 lines, and the existing tools in ArcGIS don't really accept standard SQL in a plug n chug manner?
Here's some code that should get you started. With this code I start out by deleting all of the features out of a fgdb, then reloading the data.
pyodbc returns records as a list, so you index the list items to feed your insert cursor.
import pyodbc import arcgisscripting gp = arcgisscripting.create(9.3)
tbl = r"P:\Accella.gdb\permits" gp.MakeTableView_management (tbl, "tbl_view") gp.DeleteRows_management("tbl_view") print "cleared out the table"