Advertisement

01.26.2004 at 08:24AM PST, ID: 20863113
[x]
Attachment Details

Recordset Optimization

Asked by rthomsen in Microsoft Access Database

Tags: optimization, access, database

I have an access 97 database with some tables linked to Oracle.  I have an SQL statement that runs when I open the recordset using the following statement.

set rs = currentDB.OpenRecordset(SQL)

I then iterate through the SQL statement using

while not rs.eof
     'code'
     rs.movenext
wend

the SQL statement takes about 30-40 seconds to run.  But It also takes another 30-40 seconds every time the rs.movenext statement executes.  Why does it take so much time just to move to the next record?

Thanks

rthomsenStart Free Trial
[+][-]01.26.2004 at 08:35AM PST, ID: 10201652

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.26.2004 at 08:44AM PST, ID: 10201736

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.26.2004 at 08:46AM PST, ID: 10201756

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Tags: optimization, access, database
Sign Up Now!
Solution Provided By: stevbe
Participating Experts: 2
Solution Grade: B
 
 
[+][-]01.26.2004 at 08:54AM PST, ID: 10201827

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.26.2004 at 08:57AM PST, ID: 10201855

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32