Home > Ask the AS/400 Experts > iSeries Web Development Questions & Answers > Calling a MS stored procedure from a RPG program
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

Calling a MS stored procedure from a RPG program

Jim Mason EXPERT RESPONSE FROM: Jim Mason

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 21 March 2003
Is there any way to call a MS stored procedure from a RPG or CL program?

>

I don't know of a direct way to do that since RPG or CL don't have direct access to SQL Server.

If I had to do that and didn't want to rely on IBM proprietary products like Client Access, I'd write a Java app. The Java app can use Microsoft's type 4 JDBC driver to address the SQL server database on your network. Then I can execute RUNJVA to run my Java app. If I wanted, I could have the Java app read requests from DB2/400 and return results the same way.

I've also successfully used the Sun JdbcOdbcDriver but haven't tried running a stored procedure in SQL server with it.

See the announcement below on how to obtain the right JDBC driver.

Be aware of the limitations on where this driver applies for your environment.

Microsoft Releases SQL Server 2000 Driver for JDBC from Microsoft Corp.
============================================================================

May 1, 2002 ? Microsoft announced the general availability of the Microsoft SQL Server 2000 Driver for Java Database Connectivity (JDBC), which enables users of Java and J2EE to integrate with SQL Server 2000 databases. The release, a Type 4 JDBC driver, allows developers who work in Java environments to incorporate SQL Server data with their Java technology. The driver is available for public download at www.microsoft.com/sql/downloads. Licensed SQL Server 2000 users can download it at no additional charge.

"This is Microsoft listening to customers," the company wrote in a statement. "Customers have asked us for JDBC support."

The Microsoft SQL Server 2000 Driver for JDBC supports the JDBC 2.0 specification and currently is in the final stages of testing for the Sun J2EE CTS, as well as certification on IBM WebSphere and BEA WebLogic. The driver includes such international features as Unicode and DBCS support, and is localized in German and Japanese language versions.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

Ask your Web development questions--or help out your peers by answering them--in our live discussion forums.

The Best Web Links: tips, tutorials and more.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Web Development
Implementing a browser interface in COBOL: Creating your graphic Web page
Implementing a browser interface in COBOL: Getting started
IBM i shop boosts online sales with RPG-based Web platform
Migrating from RPG to EGL on IBM i
Groovy programming on IBM i
Running PHP open source applications: NOBODY needs authority
Zend Web software teams up with IBM System i
The best technologies and tools for System i programmers in 2009
Seven IBM i project lessons learned in 2008
AS/400 lessons from the past, present, and future: A holiday tale

iSeries Java programming
Groovy programming on IBM i
EGL Rich UI on IBM i: Do you Dojo?
Programming for the Web on the IBM i, what is possible
Database performance comparisons on IBM i
Database drivers on the i: MySQL vs. IBM Toolbox
How to: Output SQL script to a text file from an AS/400
Application modernization for the iSeries: Why bother?
JDBCODBC functionality -- Java to Excel for complex workbooks
Necessity leads to iSeries Watchdog development
Accessing AS/400 data using Excel ODBC drivers
iSeries Java programming Research

iSeries Web Development
JDBCODBC functionality -- Java to Excel for complex workbooks
Accessing AS/400 data using Excel ODBC drivers
IBM WebSphere Studio Application Developer error
Database pooling on iSeries
Connecting WebSphere to AS/400 for image retrieval
Retrieving the value selected by a user
Condense ILE service program procedures
WebSphere error during login process
Connecting WebSphere to a DB2 database
WebFacing error: User ID or password invalid

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
WebSphere Development Studio Client (WDSC)  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts