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



Thank you all for all your responses and hints.

I run into appserver4rpg while reading articles here and there and I am
trying to use it. It doesn't work yet but I assume it's not well configured
yet or the downloaded version is not the latest.

The fact that many of you have already used it makes me think it's a good
solution.

As for the other suggestions: drda MS solution obliged me to use stored
procedures only as some of you pointed out and I don't want this.
Create a Java encapsulator on my own is not an easy solution for me.
On the other side, SK solution is absolutely fine except it must be
included in any ILE programs whereas Bender solution works as a gate to any
remote db you might want to access wherever the SQL command is issued from
(program, SQL CLI, ... ).

I'll keep you posted.
Thank you all again

Il Mar 11 Mag 2021, 19:48 Alan Campin <alan0307d@xxxxxxxxx> ha scritto:

So what is wrong with Scott's JDBC Api? I have used it in several shops.
Works like a charm.

On Tue, May 11, 2021 at 10:44 AM Bryan Dietz <bdietz400@xxxxxxxxx> wrote:

not sure that if it would help in this situation, but I saw a new open
source package recently.

FreeTDS is a set of libraries for Unix and Linux that allows your
programs to natively talk to Microsoft SQL Server and Sybase databases.
http://www.freetds.org/

probably more for php, but who knows

Bryan


Maria Lucia Stoppa wrote on 5/11/2021 8:43 AM:
Hi all,

First of all, hope you are all fine and healthy.

As stated in the subject, I would like to be able to run some DML SQL
statements periodically and programmatically to insert and update rows
in
one or more MS SQL Server tables.

I looked for older threads about the same topic, but it seems to me
that
they are too old and today other solutions may be available, hopefully.
That's why I submit the current question. Also, I am pretty sure I
read a
similar question and a reply from Scott Klement but I wasn't able to
find
it yet.

A linked server is already in place on the SQL server, so I know I can
access DB2 from the SQL server. What I need now is to write some ILE
programs where executing SQL statements to connect to the SQL server
and
perform DML statements.

So far, I find difficult to figure out what's needed behind the scene.

Is a new RDBE enough and if yes how should it be set? I tried creating
a
specific entry pointing to the SQL server port like this:
[image: image.png]
then executed this SQL connection:
[image: image.png]
with the right password but timed out with SQ30080 error code.

Does the SQL server be equipped with further software like SSHI to
allow
DRDA services to load and if yes what's needed on IBM i side?

Are there other solutions based on some open software?

Thank you for any suggestion or example link you could provide me with.

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx 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 RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx 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 ...

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.