Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tables in Database
Message
From
14/08/2001 11:11:45
 
 
To
14/08/2001 10:56:39
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00543523
Message ID:
00543536
Views:
20
>Hi All,
>
>How can I get an array of all the tables in a database through the VFP ODBC connection?
>
>TIA
>MIKE

Just to make sure of myself: this is the odbc connection *into* vfp, right?

VFP won't return an array. You'll have to query the DBC for this.

The sql would be:
select objectname from DBC() where objecttype = "Table"
I'm assuming you're calling this *from* VFP as well. if you need an array, you'd have to then select..into array from the result cursor.

The odbc connection should be set up as not exclusive as well.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform