• Post Reply Bookmark Topic Watch Topic
  • New Topic

CallableStatement  RSS feed

 
Ranch Hand
Posts: 58
  • 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!
 
Ranch Hand
Posts: 1561
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!