Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# connecting to VFP database
Message
De
19/06/2003 12:15:35
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/06/2003 03:52:26
Jordan Pastourel
Worksafe Management Systems
Toowong, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00801625
Message ID:
00801807
Vues:
22
>Hi all,
>i am trying to use C# to connect to my VFP6 database but can't find anywhere that tells me how to do it. anywhere i find some information it talks about the vfp oledb driver that i do not have (i think i comes with vfp7? 8?). anyway, is there a way to do it? or alternatively is there somewhere i can get the oledb driver from?
>thanks
>Jordan

VFPOLEDB is only available to VFP7-8 owners. However you might try using ODBC. Visit MS to get ODBCDataAdapter (not in VStudio installation). It should also be available with Framework1.1 and Vstudio2003 (not installed yet-not sure).
Also you might try to use MSDASQL (OLEDB provider for ODBC) but AFAIK it'd behave strange (didn't test this one).
Using Microsoft.Data.Odbc
//...
OdbcConnection myOdbcConnection = new OdbcConnection();
myOdbcConnection.ConnectionString = "DSN=Visual FoxPro Database;"+
   "UID=;SourceDB=c:\\myPath\\testdata.DBC;SourceType=DBC;"+
   "Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;";
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform