What are user defined stored procedures ?

Answer Posted / s.aravindhna

Microsoft SQL Server provides the stored procedure
mechanism to simplify the database development process by
grouping Transact-SQL statements into manageable blocks.

Benefits of Stored Procedures

Why should you use stored procedures? Let's take a look at
the key benefits of this technology:
Precompiled execution. SQL Server compiles each stored
procedure once and then reutilizes the execution plan. This
results in tremendous performance boosts when stored
procedures are called repeatedly.
Reduced client/server traffic. If network bandwidth is a
concern in your environment, you'll be happy to learn that
stored procedures can reduce long SQL queries to a single
line that is transmitted over the wire.
Efficient reuse of code and programming abstraction. Stored
procedures can be used by multiple users and client
programs. If you utilize them in a planned manner, you'll
find the development cycle takes less time.
Enhanced security controls. You can grant users permission
to execute a stored procedure independently of underlying
table permissions.
Stored procedures are very similar to user-defined
functions, but there are subtle differences. For more
information, read Comparing Stored Procedures and User-
Defined Functions.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is pl sql used?

516


How can you select unique records from a table?

518


explain what is mysql? : Sql dba

598


Write a sql query to get the third highest salary of an employee from employee_table?

631


What trigger means?

563






What are the parameter modes supported by pl/sql?

532


What is a primary key example?

511


What are the differences between implicit and explicit cursors?

517


Explain scalar functions in sql?

577


Can we join tables without foreign key?

520


What is a ddl command?

532


What is varchar sql?

615


What is sqlca in powerbuilder?

562


How many sql commands are there?

673


Explain the significance of the & and && operators in pl sql.

567