Solved

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

Posted on 2011-03-04
2
458 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 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