Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ODBC sonnection string from .NET to VFP table
Message
From
22/09/2005 12:46:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
22/09/2005 12:16:58
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01052029
Message ID:
01052045
Views:
9
>Hi,
>We have a third-party app written in .NET for which we need to supply the ODBC connection string to a VFP table. We have tried many connection strings and we have not been successful. Our table can be free or in a .DBC, whichever is best to get this thing working. Any examples? Suggestions?
>TIA,
>Mark

Why would they ever need ODBC connection string. There is VFPOLEDB that works much better and works with VFP9 too. ie:
string strCon = @"Provider=VFPOLEDB;
Data source=C:\Program Files\Microsoft Visual Studio\MSDN\2001OCT\1033\SAMPLES\VFP98\data\Testdata.dbc";
For free tables either you mgiht use an existing dbc as above or simply the path:
string strCon = @"Provider=VFPOLEDB;Data source=C:\My Path\";
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
Previous
Reply
Map
View

Click here to load this message in the networking platform