Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access FoxPro tables from VB .NET

Status
Not open for further replies.

TonyScarpelli

Programmer
Jan 23, 2003
361
US
I have a number of free FoxPro tables that I need to access from VB .NET. I think I have to use ODBC, but I'm not sure of the syntax.

Anyone do this kind of thing before?

Thanks.


Tony Scarpelli
Clinical Engineering Dept.
Maine Medical Center
Portland, Maine 04102
 
For your first try see the KB article at
"PRB: VFPODBC Driver Ignores Path
in DSN When Executing SQL"

For your second try, the error message says it doesn't like the value you
have entered for SourceType. I'm assuming you used the OLE DB provider for
ODBC drivers. Your SourceType is blank and the driver doesn't have support
for that value. Try SourceType=DBF (or SourceType=DBC if you're connecting
to a dababase).

You can also use the Visual FoxPro OLE DB provider, downloadable from
A
connection string using the Visual FoxPro OLE DB provider does not have a
SourceType parameter. OLE DB determines from the source whether it's a DBC
or free tables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top