× 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.



On 09-Jul-2015 09:30 -0600, rob wrote:
I know this comes up on the list a lot, and forgive me for not
searching, but the dilemma is something like this:
You run this SQL statement that does a SELECT with ordering, where
clause, grouping, etc and it takes forever in ODBC but runs pretty
fast from STRSQL.
How do I tell ODBC to do a bulk of the processing on the IBM i?


Apparently already resolved as essentially that the "MS SQL Server should be coded to use OpenQuery() passing the server SELECT-syntax instead of directly coding the SQL Server SELECT-syntax", but...

To make a SELECT query operate more like in Start Interactive SQL (STRSQL) does with output to display, always code\append the following two clauses on the query:

FOR READ ONLY OPTIMIZE FOR 24 ROWS


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.