I am using QODBC v.7 with QB Pro 2005. I am trying to use asp.net with qodbc and I am having a problem with a query taking two and a halp minutes to run and only return seven rows. If I run the query in VB Demo, using the same dsn that I use in asp it takes only 7 seconds.
I have tried several suggestions that I found in the forums but have yet to find a solution.
This is the query I am running. select invoice.customerRefListID,invoice.customerreffullname,invoice.shipaddressaddr2,invoice.memo,invoice.refnumber, invoiceline.invoicelinedesc from {oj invoice left outer join invoiceline on (invoice.refnumber=invoiceline.refnumber)}UNOPTIMIZED where invoice.shipdate = {d '2006-12-16'}
If I remove the invoiceline table and just run off of invoice the query takes about 30 seconds, which is still long for only 7 records. Optimizer suggestions are for QB 2006 and above, so I couldn't use any of those.
Any help would be greatly appreciated. |