aspose file tools*
The moose likes JDBC and the fly likes Determine the Callable Statements Parameters at runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Determine the Callable Statements Parameters at runtime" Watch "Determine the Callable Statements Parameters at runtime" New topic
Author

Determine the Callable Statements Parameters at runtime

carina caoor
Ranch Hand

Joined: Jun 23, 2007
Posts: 300

I am executing oracle procedures through callable statements, The parameters are entered by the user like cutomerid , dates . As there are more than one procedure to get executed and each procedure has different set of parameters , where in some procedure date is the first parameter in second procedure date is the last parameter. therefore i created a comma separated string for the parameters entered by the user and directly passed it to the procedure. but the procedure do not get executed and throws out error. Can anybody suggest me how do i determine the type of parameter at runtime and pass it to the procedure.And Why i am not able to pass paramters directly to the procedure.

Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2510
    
  10

I'll tackle the error: The error is thrown because you do not wrap single quotes around your dates.

OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Determine the Callable Statements Parameters at runtime