aspose file tools*
The moose likes JDBC and the fly likes Callable Statement - Cursors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Callable Statement - Cursors" Watch "Callable Statement - Cursors" New topic
Author

Callable Statement - Cursors

samson
Greenhorn

Joined: Aug 05, 2002
Posts: 1
i am writing a stored procedure in DB2 which returns a resultset with values from different tables.
i want to access this stored procedure.How do i do it?( DB 2 users cursors to get the resultset)
Also should the cursor be left in open state in DB stored procedure?. Should i have the resultset as outparameter or will be directly be assigned to resultset when i execute the stored procedure from java application.
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
samson
Welcome to the Java Ranch, we hope you´┐Żll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!


Dave
 
Don't get me started about those stupid light bulbs.
 
subject: Callable Statement - Cursors