vb6 - Slow query on Access database over LAN -


i use typical ado jet ole 4.0 connection vb6. example:

set conn = new adodb.connection conn     .open _             "provider=microsoft.jet.oledb.4.0;" & _             "data source=c:\database\qa1.mdb;" & _             "jet oledb:engine type=4;"     .properties("jet oledb:max locks per file") = 25000000 end 

and open recordset with:

set rstx = new adodb.recordset rstx.cursorlocation = aduseclient sql = "select ecc, ecc1, ecc2 tab1 ecc='2'" rstx.open sql, cnt, adopenstatic, adlockreadonly, adcmdtext 

but query very slow. possibly need add cursor type or completly change strategy. note: fields clause indexed.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -