Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Pass through Query

Posted on 2010-11-16
4
Medium Priority
?
454 Views
Last Modified: 2012-06-27
If I run a query (let's call it "Accounts") against a pass-through query and I have already executed the pass-through previously, does the pass through get executed again every time  I run "Accounts"?
0
Comment
Question by:chaffee007
  • 2
4 Comments
 
LVL 28

Expert Comment

by:omgang
ID: 34150286
I believe so but I haven't actually tested it.  I would not think the return recordset would be cached.
In most situations I'd think we'd want the pass-through query to execute every time to capture any recent changes.

OM Gang
0
 

Author Comment

by:chaffee007
ID: 34150312
Yes I need to Just snapshot the data.  Otherwise I need to create another Make Table Query to create my shadow table.  I would give you the points if you can confirm it.
0
 
LVL 28

Expert Comment

by:omgang
ID: 34150579
This is something you can test easily yourself.  Run a pass-through query on a table.  Edit a record in the table.  Run the pass-through query again.

If you want a snapshot of the dataset returned by the pass-through query then you should use a temp table.

OM Gang
0
 
LVL 9

Accepted Solution

by:
Armen Stein - Microsoft Access MVP since 2006 earned 2000 total points
ID: 34157986
Yes, a passthrough query retrieves fresh data from the server every time it runs.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
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 …

810 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