sql - How can I test the speed of 2 different querying methods in MS Access? -


i have database linked external sql server tables. playing around pass-through queries try , run queries on server , return results local machine. i'm told faster tables tens of millions of rows. however, want able prove myself faster querying using local machine. how can display querying time in ms access? or if there exists other way of seeing query faster, i'm ears.

my code pass-through query:

    queryname = "qrypass_abstrlist_quickinfo"     set qdf = currentdb.createquerydef(queryname)     qdf.connect = "odbc;dsn=syteline;description=syteline;uid=userid;trusted_connection=yes;database=acw_app;language=us_english;"     qdf.sql = "select ltrim(rtrim(lp.lp_num)) trim_lp, lot.item, lp.loc, lp.whse, lot.lot, lot.qty_on_hand " _                & "from isw_lp lp inner join isw_lplot lot on lp.lp_num = lot.lp_num " _                & "where " & whereclause & ";"      qdf.returnsrecords = true      docmd.openreport "rpt_abstrlist_quickinfo", acviewreport 

dim t single t= timer 'do want measure' debug.print timer -t 

timer not precise (returns seconds), that's enough me


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -