What's the purpose of Stored Procedure?

Answer Posted / m.k.manikandan

There are several purposes of using stored procedures
instead of standard SQL. First, stored procedures allow a
lot more flexibility offering capabilities such as
conditional logic. Second, because stored procedures are
stored within the DBMS, bandwidth and execution time are
reduced. This is because a single stored procedure can
execute a complex set of SQL statements. Third, SQL Server
pre-compiles stored procedures such that they execute
optimally. Fourth, client developers are abstracted from
complex designs. They would simply need to know the stored
procedure's name and the type of data it returns.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you create type- insensitive operator?

574


How do I find my localdb version?

502


Explain the benefits of user-defined functions?

532


If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?

559


How to use union to merge outputs from two queries together in ms sql server?

566






How do I find query history in sql server?

522


Do you know what are the properties of the relational tables?

579


What is a trigger and types of a trigger?

572


How to find the second highest salary of an employee?

608


What are the kinds of subquery?

539


How to create an multi-statement table-valued function?

534


What is the recursive stored procedure in sql server?

534


How do I schedule a sql server profiler trace?

547


In which format does an image save in SQL Server database ?

598


How to replace given values with null using nullif()?

582