Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to connect to dbase3 files through ODBC from vfp?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01281313
Message ID:
01281479
Vues:
9
Hi Jaime.

>I have a directory with dbase 3 tables and indexes. I am trying to connect to it from a vfp9 application, but with no success. When i use the dbase 3 odbc connector, it asks for the directory where the data resides. How do i then run calls to this data through the connector? Can it open the tables in share mode? Add new records ( updating old db3 indexes )?

Use a DSNless connection (ie. SQLSTRINGCONNECT) and specify the directory in the connection string:
lnHandle = sqlstringconnect('Driver=Microsoft dBase Driver (*.dbf);dbq=Directory for tables')
Then you can anything you'd like using SQLEXEC(), including adding, editing, or removing records.

Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform