stored procedure « db2 « Java Database Q&A





1. What are the pros and cons to writing DB2 stored procedures in SQL versus Java?    stackoverflow.com

With newer versions of DB2 you can write stored procedures in SQL or you can create procedures in Java (or other languages) that can then be added to the database and ...

2. Should we drop stored procedures and run database calls from java programs    stackoverflow.com

I am fighting to keep the use of stored procedures in our company. There are a few people who say they are bad and we should not use them. ...

3. Java Stored Procedure doesn't work on DB2/400 V6R1 - It Used to work on V5R4    stackoverflow.com

The stored procedure's definition is: CREATE PROCEDURE MYSCHEMA.LOAD_ETL ( ) LANGUAGE JAVA SPECIFIC MYSCHEMA.LOAD_ETL NOT DETERMINISTIC MODIFIES ...

4. Calling DB2 stored procedures    coderanch.com

Hi: Can anyone tell me to how to call a DB2/0S390 v 7.1 stored procedure that is residing on MainFrame in Java. I am able to establish the connection through JDBC-ODBC bridge to the DB2 but, unable to execute the stored procedure. I am able to connect to an Oracle Stored Procedure through the prepareCall,setXXX,registerOutParameter. Is this the same way it ...

7. Help with DB2 Java Stored Procedures    coderanch.com

Hi all- I need to port a big chunk of JDBC functionality off off WAS and directly onto DB2 (v7.2). I'm planning on using JDBC. I woudl really liek to re-use exsiting classes (DAOs) by importing them and calling them in the stored proc. 1) Can I do this? 2) Does anyone have an example of how to import a jar ...

8. DB2 and Stored procedure using java    coderanch.com

9. DB2 Views and Stored Procedures    coderanch.com





10. DB2 stored procedure call    coderanch.com

12. How to pass Java Objects into Stored Procedure in DB2    coderanch.com

Hi All, Can you please help me with a solution of passing Java Objects into Stored Procedures in DB2. I have a User Defined Datatype in DB2 as CREATE TYPE EPUSER.CNTCT_ADDR_TYPE AS ( "NAME" VARCHAR(100), STREET VARCHAR(30), CITY VARCHAR(30), STATE VARCHAR(2), ZIP VARCHAR(15) ) CREATE TABLE EPUSER.COMP_COMP_INFO ( COMP_ID NUMERIC(8) NOT NULL, COMP_MBU NUMERIC(8), COMP_COMPANY_ID VARCHAR(10) NOT NULL, COMP_COMPANY_NAME VARCHAR(100), COMP_START_DATE ...

13. Stored Procedure in DB2    coderanch.com

Hi all, I am able to call a stored procedure that is written in COBOL and returns a cursor. But when i get that in a resultset, although the column count is returned correct, all columns and column names have a value of null. Could somebody help me debug this? I am using the db2 universal driver and the version of ...

14. [B]Problem while calling java stored procedure which connects to db2 [/B]    coderanch.com

Note: This problem occurred when I updated the JDK from 1.3.1 to 1.4.1 or 1.4.2. Nothing else was changed in the code, other than updating the JDK on the database server (dbm cfg parm jdk_path) and recompiling/executing the code with 1.4.1 (deploying the newly compiled stored procedure code as well). This is the original exception that I got before I tried ...

15. Result Set from a DB2 stored procedure    coderanch.com

16. DB2 Stored procedures written in Java    coderanch.com

Hey We have a web application which access the DB2 database through Java and it is in production. I got an email from my counterpart asking "We will also need to determine whether the apps use DB2 stored procedures written in Java".. I am not clear with this stored procedures for DB2. Can anyone explain this.





17. How can i send email from stored procedure in db2    dbforums.com

Hi I am on a project where we have to migrate database from oracle to db2. There is a java stored procedure written for oracle that sends email to the users after picking up their email id from database. It uses java mail api to send the mail. I have been trying to port the java stored procedure from oracle to ...

18. Trying to connect to a DB2 Stored Procedure from Java    dbforums.com

Hi, I'm trying to connect to a DB2 Stored Procedure which has input and output parameters - and return the result to a ResultSet. I'm getting an SQLException with the message "No ResultSet was produced". Here's the code: // Connection to database - not actual method of connection - but the connecting to the database seems to work fine. Connection con ...

19. Calling a DB2 stored procedure    dbforums.com

If I have to call a DB2 stored procedure that makes both an update and a read that opens a cursor, can I use the executeQuery() method of preparedStatement class? It's the only method to get back a resultset, but will my update be processed? Thank you (sorry for having posted the same question on DB2 forum... I realized it was ...

20. db2 stored procedure question    forums.oracle.com