Capture Elapsed time while query runs

G

Guest

Can anyone give any pointers how to capture the Elapsed time while a set of
query run? My background is more sql driven and I could write this into to a
table,but Ideally I'd like to just display it in a message box.
Thanks,
 
D

Douglas J. Steele

Depending on how precise a count you want, it can be as easy as setting a
variable to the value of Now before you start, then setting another variable
to the value of Now when you stop. Use DateDiff to figure out the elapsed
time between them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top