aspose file tools*
The moose likes JDBC and the fly likes problem when add data through procedure using callableStatement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "problem when add data through procedure using callableStatement" Watch "problem when add data through procedure using callableStatement" New topic
Author

problem when add data through procedure using callableStatement

Dieter Bohlen
Greenhorn

Joined: Dec 18, 2009
Posts: 1
I created a database named Test that included a table: Student (rollno, uid, pwd)
I want to add a new record through a java application. I've connected to database through driver 4 ok. but I can execute a procedure.
See what exactly i coded

And the code that have trouble

I don't know where it got wrong. But anyone can show me a suggestion.
I uploaded my whole project. I'd grateful if you would correct it for me.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18154
    
    8

I don't expect anybody is going to want to download your "project" (even if it does happen to be compatible with an IDE which they have) and install a database and configure tables and stored procedures and so on. It would be better if you did a little bit of investigation on your own. Let's start with the phrase "have trouble" which you used in your post. What does that mean? Are you unable to compile the code? Do you get exceptions when you run it? Or does it just do something different than what you expected? Read TellTheDetails for more information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem when add data through procedure using callableStatement
 
Similar Threads
Sybase Procedure and Driver problem
Problem in inserting Date feild
Set Chained OFF error while executing from my Bean
Error while inserting data through procedure
calling oracle procedures in java