Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import Data of MSAccess table
Message
De
24/09/2001 16:03:00
 
 
À
24/09/2001 15:15:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00560144
Message ID:
00560185
Vues:
26
Judy,
You can use SQL passthrough to import Access data. Try something like this:
*-- build connection string
lcConnectionStr = "DRIVER={Microsoft Access Driver (*.mdb)};" +;
                  "Dbq=YourDatabase.mdb;" +;
                  "Uid=Admin;" +;
                  "Pwd=;"

*-- connect to MS Access
lnAccess = SQLSTRINGCONNECT(lcConnectionStr)

*-- import Access table into an SPT cursor
SQLEXEC(lnAccess, "SELECT * FROM YourTable") 
HTH
>Is there a way to import data into a Fox table directly from an Access database table, or does it have to be exported into some format from Access first? It doesn't seem to be a choice in the data types for importing.
>
>Judy Scofield
Daniel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform