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