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



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?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.