Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 972033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:03:30+00:00 2026-05-16T03:03:30+00:00

I’m connecting to a Jet 4 DB through ODBC. The Jet DB uses pass-through

  • 0

I’m connecting to a Jet 4 DB through ODBC.
The Jet DB uses pass-through queries to an Oracle DB. This works so far (can’t access the p-t queries directly, but creating a view on the query does the trick).

I need some subset of the data returned by the p-ts. Parameters would be best, but are not supported.

Two questions:

1) Jet does seem to be able to push some where-clauses to Oracle. Eg I have a passthrough query that returns 100k rows. A view on the p-t with a single flitering clause (eg “district = ‘1010’”) is very fast, so the processing seems to happen on Oracle. Adding more clauses can slow the query down to a crawl, looping for minutes with high CPU utilization. Is there any documentation on what is passed on and what is done on in the Jet side?

2) There are lots of tutorials on how to create dynamic passthrough queries with VBA/Access. Is it possible to do this (or anything to that effect) with Jet accessed through ODBC?

Thanks
Martin

Edit:
Sorry for being so unclear.

I have a reporting tool that accesses a Jet db through ODBC. The Jet db contains some data and several passthrough queries to an Oracle db. A typical use case would be a generating report for a given department and a given date, using data from Jet and Oracle. This works very well in principle.

The problem is that passthrough queries cannot contain any parameters. A passthrough query works like a view, so I can simply execute “select * from pt_query where dep = ‘a’ and date = somedate”. Jet, however, loads all rows from the pt and does a full scan on the client side. This is unusably slow for a 100k-rows view and I need to find a way to avoid that.

For some simple selects, Jet does seem to let Oracle do the hard work and does not load all rows, hence my question 1.

If that doesn’t work, I need to find a way to force Jet to load only the data I need from Oracle for a given request.

I know that I can modify pts through Access VBA, but I only connect through ODBC, so I can only pass SQL to Jet, not call the vb api (unless its possible to inline VB in the SQL statement).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:03:31+00:00Added an answer on May 16, 2026 at 3:03 am

    It is not impossible that the query is constructed to cause a table scan, and this is causing the problem.

    You seem to be working in VBA. It is possible to construct quite a few interesting queries as SQL strings in VBA and save them to new queries, update existing queries, use them for record sources for forms, or open recordsets. You can use DAO or ADO, depending on what you want to do. I have Oracle, so all I can do is suggest ideas using SQL Server, the connection in square brackets can be got by looking at the connection of a linked table (CurrentDb.TableDefs(“NameOfTable”).Connect):

    Dim cn As New ADODB.Connection
    
    ''You can use Microsoft.ACE.OLEDB.12.0 or Microsoft.Jet.OLEDB.4.0
    scn = "Provider=Microsoft.ACE.OLEDB.12.0;User ID=Admin;Data Source=" _
        & CurrentProject.FullName
    cn.Open scn
    
    ''An insert query, but you can see that is would be easy enough to 
    ''select from two different databases
    s = "INSERT into [ODBC;Description=TEST;DRIVER=SQL Server;" _
    & "SERVER=ServerName\SQLEXPRESS;Trusted_Connection=Yes;" _
    & "DATABASE=test].Table2 (id, atext) select id, atext from table1"
    
    cn.Execute s
    

    Or

    ''http://www.carlprothman.net/Default.aspx?tabid=87
    strConnect = _
        "Provider=sqloledb;" & _
        "Data Source=myServerName;" & _
        "Initial Catalog=Test;" & _
        "Integrated Security=SSPI"
    With cmd
        .ActiveConnection = strConnect
        .CommandType = adCmdText
        .CommandText = "SELECT ID, aText FROM table2 " _
                     & "WHERE ID=?"
        .Parameters.Append .CreateParameter _
            ("ID", adInteger, adParamInput, , 1)
        .CommandTimeout = 0
        Set rs = .Execute
    End With
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
This could be a duplicate question, but I have no idea what search terms

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.