>Hi Wayne.
>
>>I'm trying to connect to a btrieve database that I have no idea what the table names are or what syntax to use on a SQL pass-through command.
>
>Try using SQLTABLES() to get a list of the tables in the database. You can then use SQLCOLUMNS() to get a list of the fields in each table.
>
>Doug
Hi Doug,
First, I must apologize for not acknowledging your post before now - I don't know how I missed it.
We've discovered that btrieve versions 6.1 and earlier are not very ODBC friendly, and each installation is a little bit finicky. They don't always provide what you would expect from the standard SQLTABLES and SQLCOLUMNS commands - if anything at all.
Our solution is somewhat unique, and almost embarrassing: Access 2.0 (circa 1994?) talks to early versions of Btrieve NATIVELY. So we do our queries in Access 2.0 and throw the results into standarad DB3-style DBF's. We have to run it on Win98, and only use 8.3 filenames, but at this point, it's any port in a storm!
Thanks, as always,
Wayne
\/\/ayne