Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finally I did it...
Message
De
09/06/2003 11:17:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Finally I did it...
Divers
Thread ID:
00797976
Message ID:
00797976
Vues:
42
I was reading a post by Mark Hardiman (unable to open DBF) and finally I was able to connect to my VFP database. Here is how I did it
<html>

<head><title>Listado de registros</title></head> 

&lt;%
Set DataConn = Server.CreateObject("ADODB.Connection")
DataConn.mode = 16
DataConn.provider="MSDASQL.1"
DataConn.Open="Driver=Microsoft Visual FoxPro Driver;SourceType=DBC;SourceDB=\\Servidor\c\Progs\Casa_Svr\sinfo\Empr_000\sinfo.dbc;Exclusive=No; Null=No" 

set rs = server.CreateObject("ADODB.RecordSet")
rs.Source="SELECT * FROM Actividad"
rs.Open, DataConn
do until rs.eof
Response.write rs("cActividad") &""
rs.MoveNext
Loop
rs.Close

Thanks to all, now I am trying to do it in VFP, creating a COM in VFP to be used in ASP...

Juan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform