If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > connecting fox pro 2.6 with asp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-04, 14:00
sysgag sysgag is offline
Registered User
 
Join Date: Apr 2004
Posts: 1
connecting fox pro 2.6 with asp

From an asp file i'd like to know the connexion string to access a fox pro data base. Here is the way i begin the code:

<%@ LANGUAGE='JScript'%>
<%
var filePath;
filePath = Server.MapPath("nom du fichier.dbf");
var connexion = Server.createobject("ADODB.Connection");
var connectString ="CONNEXION STRING FOR FOX PRO ???
+filePath;
connexion.open(connectString);

var resultatSQL = Server.CreateObject("ADODB.RecordSet");

var requete = "requête sql";

resultatSQL.Open(requete, connexion);

Is it better to use a DSN,ODBC or an OLE DB connexion ??

Thanks
Reply With Quote
  #2 (permalink)  
Old 04-26-04, 00:00
MrWizard MrWizard is offline
Registered User
 
Join Date: Mar 2003
Location: Atlanta, GA
Posts: 191
I've always used DSNs for Foxpro. The connection string is then just the DNS name.....

Conn="DSN=dsn_name"

Tim
__________________
Tim
Reply With Quote
  #3 (permalink)  
Old 04-26-04, 02:30
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
Able Consulting - ADO Connection String Samples
http://www.able-consulting.com/ADO_Conn.htm
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On