wood burning stoves 2.0*
The moose likes JDBC and the fly likes Passing a string array as a parameter - urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "Passing a string array as a parameter - urgent" Watch "Passing a string array as a parameter - urgent" New topic
Author

Passing a string array as a parameter - urgent

Subrahmanyam Devarakonda
Greenhorn

Joined: Oct 26, 2006
Posts: 2
Hi,

We have a stored procedure which takes a synonym as its input parameter.

A friend of mine told me pass String[] to your callable statement as a parameter.

My post is

1. How to pass a String[] as a parameter to a procedure call?

2. Is there any alternative way to pass values to such a procedure which takes a synonym as a input parameter?

Thanks in advance.


Courage is the not the strength to go on<br />but to go on when there is no strength
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3710
    
    5

Have you tried setArray() in the PreparedStatement API?


My Blog: Down Home Country Coding with Scott Selikoff
Subrahmanyam Devarakonda
Greenhorn

Joined: Oct 26, 2006
Posts: 2
Thanks a lot. We are trying it out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing a string array as a parameter - urgent