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



I'm working on an ASP.NET application that uses our IBM i as the database server. The i is running 6.1. When running on my local PC (Win7 x64, Client Access 6.1), I'm getting the expected results. My queries are running properly. However, I just deployed the app to the QA web server, and am getting the weirdest SQL error ever. That machine is running Server 2008 x64 with Client Access V5R4 installed.

My SQL statement looks like this:

SELECT INVID, INVCONO, INVUNNO, INVNUM, INVDATE, INVVENDNM, INVFOODAMT, INVNFAMT,
INVCOMMENT, INVACCT, INVVHVECO, INVVHIREF, INVVHAUDT, INVVHVEND, INVIMS, INVVEND
FROM FINPINV
WHERE invcono = @cono
AND invunno = @unno
AND invvhiref IS NULL

I then add the parameters in and run the query. I get:
Token INVUNNO was not valid. Valid tokens: FOR SKIP WITH FETCH ORDER UNION
EXCEPT OPTIMIZE.

I then simplify the query to:

SELECT * FROM FINPINV
WHERE invcono = @cono
AND invunno = @unno
AND invvhiref IS NULL

This works as expected on the QA box. However, the SELECT * will probably not pass a code review, and it's not ideal anyway. Since I have fields specified in all of my SQL statements across 10 .cs files, I don't want to go back and change all of them. I haven't gotten it working well enough in QA yet to try the UPDATE or INSERT queries.

So my questions:

* Is this caused by running the V5R4 Client against a 6.1 server?

* Is there some configuration setting somewhere that would fix it?

* Should I spend my time correcting this on the QA box, when the production server has Client 6.1 already installed? (The production box was built to my specs.)

Any advice would be appreciated.

Thanks,

John Maassel
Programmer/Analyst
Bob Evans Farms, Inc
john_maassel@xxxxxxxxxxxx<mailto:john_maassel@xxxxxxxxxxxx>

________________________________
Notice from Bob Evans Farms, Inc: This e-mail message, including any attachments, may contain confidential information that is intended only for the person or entity to which it is addressed. Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and any attachments.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.