× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Rob,

I think a "pass thru query" only applies when you are going through some interface like ODBC or JDBC, where perhaps it might somehow try to run the query "locally" ... e.g. on your PC.  IIRC, Microsoft products like Access, Excel, etc., all use the "JET Engine" ... the JET engine normally copies all the data and runs the query locally.  That's when you want to use a "pass thru" query. 

By "Run SQL Scripts"  do you mean in Access Client Solutions?   Since ACS is an IBM i client, it is designed to send the query over and run it directly on IBM i ... So, no need to worry about any "pass thru query" vs. "local execution"  AFAIK ...


Similarly, if you run STRSQL on IBM i in a 5250 session, or you run RUNSQLSTM on IBM i, it runs the query via the built-in Db2i SQL engine directly.

HTH,
Mark S. Waterbury

On Tuesday, April 9, 2019, 9:54:01 AM EDT, Rob Berendt <rob@xxxxxxxxx> wrote:

Does Run SQL Scripts automatically do pass thru queries?
We ran a query against our biggest table selecting a very small subset of rows and bytes across the line were more indicative that it did run a pass thru query.

create table rob.sample1 as(
SELECT *
FROM QSYS2.NETSTAT_INFO
) with data;

select *
from erplxf.glh
where lhdram = 273.41
;
create table rob.sample2 as(
SELECT *
FROM QSYS2.NETSTAT_INFO
) with data;

select * from rob.sample2
where remote_address = '10.10.9.30'
;

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Rob Berendt
Sent: Tuesday, April 9, 2019 7:20 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: Maximum OBDC Query Size

Thank you for explaining that.

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Charles Wilt
Sent: Monday, April 8, 2019 5:11 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Maximum OBDC Query Size

"openquery" is the MS SQl Server function used to make pass-through queries.

In Access, it's done a different way..

In both cases, it's the client application deciding to read entire tables, not ODBC itself.

Charles


On Mon, Apr 8, 2019 at 12:45 PM Stefan Tageson <Stefan.Tageson@xxxxxxxx>
wrote:

Then I am thinking of something else.

Eventually you may remember an email sent on August 10, 2017 by a
gentleman Rob Berendt stating:
This is a common problem.  This is why, when using ODBC connections,
using "openquery" to do a bulk of the sorting and selection up on the
server instead of doing the raw selection and ordering on the client
can make a phenomenal difference.

Best regards

stefan.tageson@xxxxxxxx
M +46 732 369934


Sensitivity: Internal
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.