Yes, I have been using it successfully for Oracle access. I think it is fairly generic. You can basically access any database that provides a type 4 JDBC driver.

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Peter Connell
Sent: 26 March 2011 23:09
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400] SQL Server database access from Net.Data

Don,
Net.data 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:
http://systeminetwork.com/files/RpgAndJdbc.zip

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

JDBC from RPG
http://www.iseriesnetwork.com/article.cfm?id=52577

MySQL Database Access from RPG
http://www.iseriesnetwork.com/article.cfm?id=52433
---------------------------------------------------------------------------------------------------------------

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?
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.

#####################################################################################

This correspondence is for the named person's use only. It may contain confidential
or legally privileged information, or both. No confidentiality or privilege is waived
or lost by any mistransmission. If you receive this correspondence in error, please
immediately delete it from your system and notify the sender. You must not disclose,
copy or rely on any part of this correspondence if you are not the intended recipient.
Any views expressed in this message are those of the individual sender, except where
the sender expressly, and with authority, states them to be the views of Veda Advantage.
If you need assistance, please contact Veda Advantage on either :-
Australia 1300-762-207 or New Zealand +64 9 367 6200
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



--------------------------------------------------------------------------------


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.

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