Definition
A stored procedure is a programming code that runs in the address space of a Database Management System (DBMS). The term stored procedure refers to a procedure we write with SQL statements. It is a database object executed in Teradata database. Typically a stored procedure consists of a procedure name, input and output parameters, and a procedure body.
Index
- How to create a Stored Procedure
- How to modify a Stored Procedure
- How to delete a Stored Procedure
- Grant Permissions on a Stored Procedure
- How to return data from a Procedure
- How to get Stored Procedure’s data from a C# application
- Dependencies of a Stored Procedure
A stored procedure provides control and condition handling statements, in addition to multiple input and output parameters and local variables, that make SQL a computationally complete programming language. Applications based on stored procedure provide the following benefits over equivalent embedded SQL applications:
- Better performance because of greatly reduced network traffic between the client and server.
- Better application maintenance because business rules are encapsulated enforced on the server.
- Better transaction control.
- Better application security by restricting user access to procedures rather than requiring them to access data table directly.
Here, I will create a simple stored procedure which will retrieve data based on the given parameter value.
In SQL Management Studio expand your database under which you want to create the procedure. There will be a directory name “Programmability”.

Expand the mentioned directory and create a new stored procedure right clicking on the “Stored Procedure.” Select the “Specify Values for Template Parameters” option from “Query” menu.

In the opened dialog box specify the values as in the following:

Now the template will be like the following:

We have to replace the SQL SELECT statement with our own query. I have used a simple SELECT query here.
- SELECT*FROMdbo.testWHEREID=@IDANDEmail=@Email;
So we have successfully created our first stored procedure using SQL Management Studio. I’ll discuss the other topics sequentially in my next article.

Santhakumar MunuswamyPosted Jan 19, 2016, 2:56 PM
Thanks for nice article.
Ankur MistryPosted Jan 19, 2016, 12:10 AM
good one
Debasis SahaPosted Jan 18, 2016, 9:32 AM
Good
Mohammed IbrahimPosted Jan 18, 2016, 8:57 AM
nice
Tapan DubeyPosted Jan 18, 2016, 8:14 AM
Good One , Thanks For Sharing...
Ehsan SajjadPosted Jan 18, 2016, 7:46 AM
Nice article, keep sharing
Yashwant VishwakarmaPosted Jan 18, 2016, 7:27 AM
useful article, thanks for sharing !!
Manish SharmaPosted Jan 18, 2016, 7:02 AM
.... very usefull article
Raja TPosted Jan 18, 2016, 7:01 AM
Nice,Thanks for sharing..
Anil Kumar MurmuPosted Jan 18, 2016, 6:56 AM
good article
Arul RPosted Jan 18, 2016, 6:39 AM
Nice share
Pankaj Kumar ChoudharyPosted Jan 18, 2016, 6:33 AM
Nice Explain Bala....