Solved

Query on OBBC (Oracle) is slow if use a native (Access) table for selection criteria

Posted on 2011-03-04
2
459 Views
Last Modified: 2012-05-11
Hello,

I have a query based on several ODBC Oracle tables.  When I run it this way and just type criteria into the query grid, it runs fine.  If I make a simple form and have the criteria based on that (each one a single value) it also runs fine.

One of my criteria is date.  If I just enter the single date onto the query grid or use the form, everything runs fine.

If I have a select table with one field ([SelDate]) and index it and only put 1 date record in the table, in runs unbelievable slow ( 3 - 5 min) as opposed to seconds.

I need to be able to use a selction that could have several values so I need to figure out why it is so SLOW in I introduce and native access table to the query def.

Thanks.
0
Comment
Question by:vmccune
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 250 total points
ID: 35040647

 When you join to a local table, JET is going to carry out the query rather then shipping it off to the server to be executed.  You can confirm this by turning on ODBC tracing, but I'm sure that's what you'd see.

  To keep this fast, you'll need to build up a SQL string with all the dates, then execute it.

JimD.
0
 
LVL 8

Assisted Solution

by:Andrew_Webster
Andrew_Webster earned 250 total points
ID: 35040674
Have you created a relationship between the Oracle tables and the local Access table using the relationships window?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question