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



Couple options:

Here's a quick how-to on hooking up freetds to SQL Server. As Bryan mentioned this should work with PHP, Python or Node I imagine and probably easy to implement a command to execute SQL statements and query data back as CSV, JSON or other formats is desired.
https://github.com/richardschoen/howtostuff/blob/master/ibmisqlserverfreetds.md

Use Scott Klement's JDBC wrapper from RPG.

Write your own web service in Java that uses freetds or the MS JDBC Driver.

Check out AppServer4RPG. You can use embedded RPG SQL statements against SQL Server and other DBs
https://sourceforge.net/p/appserver4rpg/wiki/Home/

Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
------------------------------

message: 2
date: Tue, 11 May 2021 12:44:41 -0500
from: Bryan Dietz <bdietz400@xxxxxxxxx>
subject: Re: How to access MS SQL Server 2019 from IBM i running v7r4

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.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.