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



Hi Steve
Take a look at Ardgate
The following 2 web pages describe the Ardgate process:-

http://www.rpgiv.info/mambo/index.php?option=com_content&task=view&id=473

https://www.mcpressonline.com/programming-other/java/german-programmer-devises-novel-way-to-access-any-remote-db-from-ibm-i



This is the actual site to download the software that is needed

https://sourceforge.net/projects/appserver4rpg/

We are using this process to pull data from a SQL server


Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Steve M via RPG400-L
Sent: Tuesday, November 12, 2019 12:26 PM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Cc: Steve M <txpenguin1@xxxxxxxxxxx>
Subject: [EXTERNAL] SQL Linked Server from RPGLE

I have successfully been using an adaptation of Scott Klement's JDBC connection process to access Oracle for quite some time.



Now, I need to access ADSI in our SQL Server world in order to retrieve email addresses. Within the MS SQL Server Management Studio, I am able to execute the appropriate commands to add a linked server, log in to that linked server, and then execute an SQL select against the linked server using OpenQuery against the ADSI connection.



The time is now to write all of this inside of an RPGLE so the program so it can dynamically create the connection, put the user's employee number in the SQL Where clause, and retrieve a user's email address, from the ADSI, as needed.



Has anyone successfully done this in the past? Is there another method? I am assuming, just like I used Scott's JDBC example I can use his ODBC example, but the linked server part has me a little concerned.



I am not committed to this method if there is another way to make this process work.



Since this code will be embedded inside of an RPGLE program, I assumed this was the proper group to post to - if not, please let me know and I will repost elsewhere, if more appropriate.



Thanks for any and all assistance.



Steve Meisinger



--
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@xxxxxxxxxxxx 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.