Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using ADO
Message
De
09/07/2000 21:53:28
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
09/07/2000 09:28:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00389950
Message ID:
00390082
Vues:
19
Kobi,

I haven't worked with ADO at all, but the SQL to get a list of tables from the database is:

nConnectionHandle = SQLCONN("MyNamedConnection")
nWhatAreTheTables = SQLTABLES(nConnectionHandle)
nWhatAreTheColumns = SQLCOLUMNS(nConnectionHandle, "cMyTableName")

SQLTABLES returns the result in a CURSOR named SQLResult with columns Table_qualifier, Table_owner, Table_name, Table_type, Remarks.
In the database I use, Table_name and Table_type had values and the other fields were null. Values for Table_type were "TABLE" and "VIEW."

SQLColumns returns a cursor also called SQLResult. I think you can spacify the name of the returned cursor as one of the arguments. Columns returned are Field_name, Field_type, Field_len, Field_dec (decimal points?)




>I'd like to connect to any SQL database (ORACLE,SQL) using ADO
>
>But I just want to get the list of tables in the DataBase
>
>How do we do it ?
>
>Thanks for help .
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform