Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO vs. SPT, a benchmark test...
Message
De
22/06/2001 11:54:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00522283
Message ID:
00522541
Vues:
9
Just out of curiosity, what are the results if you add the code in bold below?
time1 = SECONDS()
oConn = CREATEOBJECT("adodb.connection")
oConn.Open("bbfsdsn","sa","")
oCustomerRS = CREATEOBJECT("adodb.recordset")
oCustomerRS.Open("SELECT * FROM patledger",oconn)
<b>DO WHILE !oCustomerRS.EOF
    x = oCustomerRS.Fields("somefield")
    oCustomerRS.MoveNext()
ENDDO</b>
time2 = SECONDS()
Time1 = SECONDS()
oConn = SQLCONNECT("BBFSDSN","sa","")
cSQL = SQLEXEC(oConn,"SELECT * FROM patledger","oCustomerRS")
<b>SCAN
    x = <i>somefield</i>
ENDSCAN</b>
TIME2 = SECONDS()
Sylvain Demers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform