File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes testing a stored procedure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "testing a stored procedure" Watch "testing a stored procedure" New topic
Author

testing a stored procedure

sdeep anand
Greenhorn

Joined: Jul 16, 2006
Posts: 7
Hi,
I have this stored proceure. I inserted data into the table. I want to get data back and this is the stored procedure. I tested using java. My method runs without errors but i dont get any data when I print out. I want to test this procedure in toad to see if it is getting data at all.
userid=sdeep
linesetid =1
fublineid is null for now

how do I test this procedure in toad and see if it is really getting data.


[ August 14, 2006: Message edited by: Lasse Koskela ]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Moving to the Engineering-->Testing Forum


Merrill
Consultant, Sima Solutions
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30370
    
150

Moving to JDBC as I think people there are more likely to have used TOAD:
I want to test this procedure in toad to see if it is getting data at all.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
I spent some time trying to define variable in Toad but without any success. Looks like Toad doesn't support SQL* Plus features like define/print/variable.

One way you can test the procedure is to execute the procedure in the anonymous block by defining local variables for the return values and using dbms_output.put_line. This is more work than using SQL* Plus. The other way is to debug (using break points) the procedure itself and just make a call to the procedure.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: testing a stored procedure