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



Nope, I'm just referring to Stored Procedures. We're not doing anything
with embedded SQL in our java, and have simply relied 100% on
stored procedures, to wrapper around our business logic.

I'm just curious if anyone is doing something different than the same ol'
IN/OUT variables for every parameter to be passed in.

David

David L. Mosley, Jr.
Technical Solutions Architect
Dancik International, Ltd.
2000 CentreGreen Way, Suite 250
Cary, NC 27513

www.dancik.com



Paul Holm <pholm@xxxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
11/30/2010 04:34 PM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>


To
rpg400-l@xxxxxxxxxxxx
cc

Subject
Re: Speaking of best practices, I've got one for anyone using SQL Stored
Procedures to call RPG programs...






dmosley@xxxxxxxxxx wrote:
Just wanted to get an idea of how everyone builds thier stored
procedure's
IN/OUT parameters.

Do you build an IN parameter for each and every field you want to pass
in,
or do you do something else?

Thanks
David


David L. Mosley, Jr.
Technical Solutions Architect
Dancik International, Ltd.
2000 CentreGreen Way, Suite 250
Cary, NC 27513

www.dancik.com

SQL versus Stored procedures: The declaration of IN/OUT Parms does
"seem" to be a significant difference. With SP, you have to manually
declare/size each and every parameter then have separate code to
process each and every end user query. With dynamic/prepared SQL you can
enable better reuse/productivity. Best practice: Use PHP/Java based
SQL for most cases where SQL can solve the problem otherwise consider a
stored procedure.

Thanks, Paul Holm


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.