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




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.