Don, can't access an SQL server database but it can call a program that does.

Scott Klement wrote JDBCR4 *SRVPGM to provide this capability.

I've had a play with it and it works appears to work fine provided that you have the necessary credentials and permissions on the SQL Server database.
It essentially allows you to code SQL statements from RPG that deploy to an SQL server database, analogous to deploying to a DB2/400 database via /exec sql.
It requires a specific java class for the necessary SQL driver which you need to download as a pre-requisite into your java ext directory ( can't find the url I used for that at present)

Here is a paste from one of Scott's articles -
You can download JDBCR4, my updated service program that has null support, from the following link:

Read my previous articles about this subject at the following links:


MySQL Database Access from RPG

Cheers, Peter

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Don Cavaiani
Sent: Sunday, 27 March 2011 8:08 a.m.
To: web400@xxxxxxxxxxxx
Subject: [WEB400] SQL Server database access from Net.Data

Is there a simple setup and way to grab SQL Server data (from a Windows
PC) via a Net.Data Macro?

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-2021 by 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.