Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual FoxPro 7.0 OLE DB provider
Message
De
30/03/2005 05:25:32
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP1
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
00999842
Message ID:
00999887
Vues:
53
>Hi all,
>
>I using below connection string in ASP.NET and C# with ADO.NET oledb command when I changed the data source to D driver. I encounter a error like this "Exception Details: System.Data.OleDb.OleDbException: Invalid path or file name".
>
>
>strconnection = "provider=VFPOLEDB.1 ;data source='D:\DATABASES\VFP\SPF_LTM';password='';user id=''";
>
>What is the problem of foxpro ole db provider ? ONLY can access the data source in C driver!
>Can somebody help me solve the problem? Thank you in advance.

Vincent,
Besides security check your connection string. Version says C# and code looks like C#. If it's C# or C++, \ in string denote an escape character. Either use \\ as path separator or prefix your string with @. However I think it's a typo writing here otherwise I expect the compiler to catch it (but might slip with valid escape sequences).
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
Répondre
Fil
Voir

Click here to load this message in the networking platform