Very Urgent!! Stored Procedure Problem!!!

Hi Friends,

I am in a great trouble!! I hv a procedure which has a print statement in it. Is it possible to capture or redirect the output of my print message?

Say, my procedure is like

create procedure MyProc as

select * from table1

print"Hello World!!"

go

When I run my JDBC query thru CallableStatement my result set holds only the value of select query, but what my "Hello World!!" ?

Thanks.

Kesavan.

[524 byte] By [kes_javaman] at [2007-9-26 5:39:27]
# 1
Hi Kesavan,PRINT is just an SQL*PLus command. If you want to capture your output you'll have to assign it to an OUT parameter in your stored procedure then return is that OUT parameter to your callableStatement.Richard
Rijaos at 2007-7-1 13:53:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
You could also do a select from dual and handle the result as a multiple result set.
jschell at 2007-7-1 13:53:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...