Foxpro odbc sql statement for list of tables

Good Morning

Can anyone tell me the sql statement that will list all the dbf files in the

data directory pointed at by my foxpro odbc DSN.

Some thing like

Select tablename from systables

thanks 

 

David Hills

 

 

 

 



Answer this question

Foxpro odbc sql statement for list of tables

  • dr Davide Bombarda

    Like systables Its counterpart is SQLTables(). ie:


    lnHandle=Sqlstringconnect('Driver={Microsoft Visual FoxPro Driver};'+;
      'SourceDB=c:\MyDataFolder;SourceType=DBF;')
    SQLTables(m.lnHandle)
    SQLDisconnect(m.lnHandle)
    select sqlResult
    browse


  • Foxpro odbc sql statement for list of tables