What is a stored procedure

0 votes

What is a "stored procedure" , how do they work?

What is the build-up for stored procedure (also list the things which are must  to be a stored procedure)?

May 27, 2022 in Others by avinash
• 1,840 points
811 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

A stored procedure is a prepared SQL code that one can save, so the code can be reused over and over again.

So if we have an SQL query that we can write over and over again, save it's a stored procedure, and then just call it to execute it.

You can also pass parameters to a stored procedure, so that the stored procedure can act based on the parameter value(s) that is passed.

CREATE PROCEDURE procedure_name
AS
sql_statement
GO;
answered Jun 2, 2022 by Sohail
• 3,040 points

edited 5 days ago
0 votes
A stored procedure is a piece of prepared SQL code that you can save and reuse over and over.

So, if you have a SQL query that you create frequently, save it as a stored procedure and then call it to run it.

You can also pass parameters to a stored procedure so that it can act based on the value(s) of the parameter(s) passed.
answered Jun 20, 2022 by Sohail
• 3,040 points

edited 5 days ago

Related Questions In Others

0 votes
1 answer

What is a name function in JavaScript & how to define it?

A named function declares a name as ...READ MORE

answered Mar 7, 2019 in Others by Frankie
• 9,830 points
4,805 views
0 votes
1 answer

What is a callback function?

Callback function is a function which is ...READ MORE

answered Jun 13, 2019 in Others by sunshine
• 1,300 points
1,282 views
+1 vote
1 answer

What is Node.js? I want a clear understanding about it.

Node.js is a runtime environment which allows ...READ MORE

answered Jun 17, 2019 in Others by ArchanaNagur
• 2,360 points
1,125 views
0 votes
1 answer

What is the impact of covid-19 on a global economy?

Covid-19 that is co-corona,vi-virus,d-development,19-In the year 2019.The ...READ MORE

answered Mar 19, 2020 in Others by Niroj
• 82,840 points
1,358 views
0 votes
1 answer

What is a future data type in Flutter?

Hi@akhtar, Future is a type that ‘comes from the ...READ MORE

answered Aug 11, 2020 in Others by MD
• 95,460 points
972 views
0 votes
0 answers
0 votes
1 answer

What is a stored procedure?

A stored procedure is a set of ...READ MORE

answered Feb 4, 2022 in Database by Neha
• 9,020 points
1,167 views
0 votes
1 answer

Function vs. Stored Procedure in SQL Server

Functions are calculated values that cannot make ...READ MORE

answered Feb 17, 2022 in Database by Neha
• 9,020 points

edited Feb 17, 2022 by Neha 19,502 views
0 votes
0 answers

Loop in stored procedure in SQL server

Writing a stored procedure that calls another ...READ MORE

Aug 28, 2022 in Database by Kithuzzz
• 38,000 points
1,885 views
0 votes
1 answer

How do I UPDATE from a SELECT in SQL Server?

MERGE INTO YourTable T USING ...READ MORE

answered Feb 3, 2022 in Database by Vaani
• 7,070 points
920 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP