Please make odbc query return a list of table names. I have used a hack suggested by Joseph Coveney to do this (see below), but I wish there was an easier and cleaner way of iterating through the tables in a database.
Code:
* Log the output of odbc query to a temporary file tempfile tmpfil0 quietly log using `tmpfil0', text odbc query "MS Access Database;DBQ=Northwind.mdb" quietly log close * Extract the table names from the log infix str244 a 1-244 using `tmpfil0', clear generate byte keep = sum(strpos(a, "---") == 1) keep if keep == 1 drop in 1 * Create the list of tables levelsof a, local(tables)
Comment