Currently I have tests proving that Server.CreateObject is 2x faster than
CreateObject
Do Until Timer - T > 1
x = x + 1
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "provider=sqloledb;initial catalog=pubs;data source=EG2;user
id=sa;password=;"
Conn.Close
Set Conn = Nothing
Loop
benchresult: Server.CreateObject in 1400 times / sec
CreateObject: 820 times/sec
WHat could be the reason that Server.Createobject is faster now?
Regards,
Egbert
"Egbert Nierop" <e.ni...@spammeandIspamyoubetter.com> wrote in message
news:OptEnBtU$GA....@cppssbbsa02.microsoft.com...
"John Leggett" <legg...@pacbell.net> wrote in message
news:e$QrhlhW$GA.260@cppssbbsa04...
Under NT, we found that createobject in ASP pages could screw up the MTS
process, too. We've been doing server.createobject ever since.
MCA
"Egbert Nierop" <e.ni...@nospam.net> wrote in message
news:eGhOzhFY$GA.255@cppssbbsa05...
Given that the connection object could be pooled I'd suggest that this is an
unfair test (though I'm not commenting on the results).
I'd try running it with a VB object to ensure that it isn't being pooled.
J.T.