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

Connecting a Foxpro database

Status
Not open for further replies.

manoj

IS-IT--Management
Jun 21, 2000
4
0
0
GB
Sir,
I was able to connect to a access database using the following code, succesfully. But unable to connect to foxpro database. Kindly help, as I am new to these.

<HTML>
<BODY>
<B>Here are my friends:<B><BR>
<%
Set MyConn = Server.CreateObject("ADODB.Connection")
MyConn.Open "FILEDSN=c:\dsn\MyTable_dsn.dsn"
SQL_query = "SELECT * FROM Friends"
Set RS = MyConn.Execute(SQL_query)
WHILE NOT RS.EOF
%>
<LI><%=RS("Name")%>: <A HREF="<%=RS("Link")%>">Homepage</A>
<%
RS.MoveNext
WEND
RS.Close
MyConn.Close
%>
</BODY>
</HTML>



Note: The access datbase is in d:\ (root), the dsn file for it is in c:\dsn folder called mytable_dsn.dsn , the table is 'friends' which has got the fields 'Name' and 'Link'.
The foxpro database table called friends.dbf is in d:\manoj_web folder, its dsn file (dbase 3) in c:\dsn\mytable_dsnv.dsn .

Thanking you in advance
M.Manoj

 
Hi,

can you please help me urgently on how to connect frontpage to an existing Microsoft Access database that I have?

I try to connect by going to tools -> site settings, Database tab and adding in an existing database but it states it needs a Microsoft Access Driver. Where I can get the driver from?

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top