PDA

View Full Version : Database Response Time


oracleguy
08-07-2003, 06:44 PM
Is there some way with MsSQL 2000 and ASP to find the response time of the database? Like how long, probably in miliseconds, it took for the query to execute?

I can't seem to think of anything that will tell me the time in anything less than a second.

raf
08-07-2003, 08:43 PM
Timer will

like

dim starttimer, endtimer

sql="blablable"
starttimer=Timer
rsRecordset.Open sql, conn
endtimer=Timer
response.write("Execution took " & endtimer-starttimer & " seconds")

oracleguy
08-07-2003, 09:08 PM
Works great. Thanks raf.

raf
08-08-2003, 08:17 AM
You're welcome :thumbsup: