![]() |
Basics of Stored Procedures
SQL Server implements Client/Server technology.A number of client send queries to the Central Server.The server after receiving the query request,parses it for syntax errors and process the request.Since the query passes from the client to the server through the network it adds to network traffic.Hence an increase in the number of queries from the clients leads to network congestion and load on the server.A stored procedure can solve this problem.
It is a collection or batch of T-SQL statements and control-of-flow language that is stored under one name and executed as a single unit.It helps in improving the performance of the query.A stored procedure is a precompiled object and is readily available for the various applications to execute. Features of stored procedures are:-
Types of procedures
Code:
CREATE PROCEDURE proc_nameSyntax to execute procedure is Code:
EXECUTE proc_nameCode:
DROP PROCEDURE proc_name |
Re: Basics of Stored Procedures
|
Re: Basics of Stored Procedures
Thanks a lot for your useful article
|
Re: Basics of Stored Procedures
good article. But you haven't included about passing arguments to stored procedures. Inclusion of this will complete the article. Thanks for sharing.
|
Re: Basics of Stored Procedures
thanks for sharing
|
Re: Basics of Stored Procedures
You just provided an example for stored procedure would you please provide me with a real life example for procedures . I badly need it
|
Re: Basics of Stored Procedures
thanks tell how we will create it and and connect with the server please.
|
| All times are GMT +5.5. The time now is 04:07. |