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
Solved

stored procedure

Posted on 2000-05-13
6
233 Views
Last Modified: 2010-04-02
what is stored procedure?tell its usage in Servlets.give examples
0
Comment
Question by:krsathi
  • 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 

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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
how to understand recursion 12 229
One named event, multiple event handlers 2 24
learn programming 8 38
boost::uuid crashes 17 11
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

856 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