>Does anyone have a function they could share that will provide "SQL create cursor code" if you feed the function with a table/cursor name.
Not sure what you wanted, would like to recommend following commands FYI:
1) To a native table - COPY STRUCTURE EXTENDED TO a_stru_tbl.dbf
2) To a SQL table -SQLCOLUMNS()
Steven