File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CallableStatement

 
K Ville
Ranch Hand
Posts: 58
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written simple programs for my school projects using PreparedStatement and Statement. My teacher says that CallableStatement is for invoking a procedure from a database, in my case, SQL Server 7.0. My teacher says that CallableStatement is beyond the scope of our school guidebook. Can anyone please give me a sample on how it works? Thanks!
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by K Ville:
I have written simple programs for my school projects using PreparedStatement and Statement. My teacher says that CallableStatement is for invoking a procedure from a database, in my case, SQL Server 7.0. My teacher says that CallableStatement is beyond the scope of our school guidebook. Can anyone please give me a sample on how it works? Thanks!

You use CallableStatement for calling store procedures or functions. Have a look at this article, it explains with an example how you can use it.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic