Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error connecting to database
Message
 
À
02/04/2004 14:55:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00891866
Message ID:
00891874
Vues:
20
This message has been marked as the solution to the initial question of the thread.
try changing your connection string to this format:

this.oConn = new OleDbConnection("Provider=vfpoledb.1;" +
@"Data Source=D:\Programs\vfp70\Samples\Data\testdata.dbc;" +
"Exclusive=false;Nulls=false");


>guys,
>
>we are experimenting with ASP.NET and VB.NET and are having a tough time trying to connect to a VFP 8.0 database. we have no problems connecting to a SQL database.
>
>first we tried a standard ODBC connection and then we tried the following OLEDB connection string and we keep on getting error message "892".
>
>"Provider=VFPOLEDB.1;Data Source=C:\Inetpub\dbfiles\cs21\;"
>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\dbfiles\unique\; Extended Properties=dBase 5.0"
>Provider=ODBC;DSN=1-800-predict-cs21;database=cs21;Exclusive=No"
>
>can anyone provide any insight that will help me get started with using Foxpro databases with DotNet?
>
>thanks,
>
>vim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform