hi ,
Can any one Explain About What is stored Procedure Explain Briefly With Example
Thank you
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Oct 5, 2016, 5:24 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Oct 5, 2016, 12:31 AM EDT
"A stored procedure is nothing more than prepared SQL code that you save so you can reuse the code over and over again. So if you think about a query that you write over and over again, instead of having to write that query each time you would save it as a stored procedure and then just call the stored procedure to execute the SQL code that you saved as part of the stored procedure.
In addition to running the same SQL code over and over again you also have the ability to pass parameters to the stored procedure, so depending on what the need is the stored procedure can act accordingly based on the parameter values that were passed."
Reference - https://www.mssqltips.com/sqlservertutorial/160/sql-server-stored-procedure-tutorial/
Guest UserRank #2,002 · 726 reputationPosted Oct 5, 2016, 1:41 AM EDT
A stored procedure is a group of sql statements that has been created and stored in the database. Stored procedure will accept input parameters so that a single procedure can be used over the network by several clients using different input data. Stored procedure will reduce network traffic and increase the performance. If we modify stored procedure all the clients will get the updated stored procedure