• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CallableStatement

 
K Ville
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!
 
Andres Gonzalez
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.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic