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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using FoxPro DBF with ASP

Status
Not open for further replies.

sdpsc

Technical User
Feb 10, 2001
76
How do I get a FoxPro DBF file to work with ASP? I have the following connection string working with an Access MDB:

strConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mappath("cooproductions.mdb")

What does the provider part need to be to work with a DBF? Thanks!
 
Thanks! I'm not getting this to work though, I have this code:

---

set cn = CreateObject("ADODB.Connection")

strConnectionString = "Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;Exclusive=No;Collate=Machine;NULL=NO;DELETED=NO;BACKGROUNDFETCH=NO;Data Source=" & server.mappath("dnc.dbf")

cn.open strConnectionString

---

And I get this error:

---

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name too long

---

Any help would be greatly appreciated!
 
how about using this:

"Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=c:\mydbpath;"

-DNG
 
the string i provided in my first reply was for Visual FoxPro..sorry...please take a look at that website...you can find all the connection strings...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top