?
Solved

stored procedure

Posted on 2000-05-13
6
Medium Priority
?
242 Views
Last Modified: 2010-04-02
what is stored procedure?tell its usage in Servlets.give examples
0
Comment
Question by:krsathi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 2807058
"Stored procedure" is not a universal term.   What is the context in which you encountered.

"servlets" is not that universal either. At least, I have never heard of it
0
 
LVL 1

Accepted Solution

by:
Ilango earned 20 total points
ID: 2872766
When you wanna perform certain database operation efficiently you can do by writing some fucntion/procedures which will get saved as a part of your database system. These are called 'Stored Procedures'. Then you can make use of these procedures from any DB access program. Here is how you can make use of a stored procedure in a servlet.

you may use the Connection object to prepare a  CallableStatement.

    For example:
    Connection.prepareCall("{ ? = call SP(?,?,?) }");
     
     where `? = ` indicates that the stored procedure
           SP is returning a OUT parameter
     
           `?,?...` are optional IN or OUT parameter
     
     If SP does not require any IN or OUT parameter or return value,
     you can simply use "{ call SP }" as the SQL string in  
     prepareCall().
0
 
LVL 22

Expert Comment

by:nietod
ID: 2873517
this question has been dead for 3 weeks!  At the very least you should post a comment to see if the client is still interested.  Seeing as he never answered my question, I'm pretty sure he is not interested.  In addition, you are making huge assumptions in your "answer".  
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:krsathi
ID: 2875422
Answer accepted
0
 

Author Comment

by:krsathi
ID: 2875425
i need it in detail
0
 
LVL 22

Expert Comment

by:nietod
ID: 2875544
>> i need it in detail
Then you shouldn't have accepted the answer yet.  Hopefully Ilango, can provide the detail you need, if not you will have to ask a new question as this one is now closed.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question