Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO vs. SPT, a benchmark test...
Message
From
22/06/2001 11:54:02
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00522283
Message ID:
00522541
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform