Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO questions
Message
De
19/07/2001 10:52:58
 
 
À
18/07/2001 19:14:29
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00532298
Message ID:
00532567
Vues:
13
>Hi all,
> I am new with ADO, which version of MDAC should I download to work with VFP5.0 DBC/DBF , Access 2000 databases and MSDE ?
>Can somebody give me an example of how to work with Access 2000 databases using
>ADO either connection string or dsn ?
>
>Thanks a lot.
>
>Kam

Download MDAC 2.5, since 2.6 does not have the VFP ODBC driver.

An simple MDB connection string sample follows:
lcMDBStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\myDir\myAccess.mdb;"
oCn = Create("ADODB.Connection")
oCn.Open(lcMDBStr)
oRS = oCn.Execute("Select * From myTable")
For sample connection strings VFP, SQL Server & Access get from the UT downloads the following file: "ADOGetRows.jcRStoCursor". See testmyrs.prg once you downloaded it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform