Interviews9 answers
Why I have to use stored procedures?
9 Answers
For security
Mukesh KumarPosted Sep 5, 2017, 12:08 AM EDT
They are precompiled and is stored in Database. SP's reduces the Server load to Compile the Queries.
Mahesh Kumar AlankaPosted Apr 25, 2014, 11:45 PM EDT
Simple sql queries complied every time during execution but stored procedures are precomplied hence the execution time of execution is reduced.
Ranjit PowarPosted Apr 22, 2014, 9:45 AM EDT
If there is a situation where we write a query again and again then we write that query as stored procedure and we call it by its name.
Munesh SharmaPosted Apr 4, 2014, 1:27 AM EDT
store procedure is compiled statement that why is faster and also it is more secure
Satish RajnalePosted Feb 27, 2014, 7:13 PM EST
A benefit of stored procedures is that you can centralize data access logic into a single place that is then easy for DBA's to optimize. Get DataBase result sets from some business logic on data. Execute multiple DB operation at single call.
DhinakaranPosted Feb 19, 2014, 8:27 PM EST
Stored Procedure can reduce network traffic.
An operation requiring hundreds of lines of Transact-SQL code can be performed through a single statement that executes the code in a procedure, rather than by sending hundreds of lines of code over the network
srikanth divvelaPosted Feb 13, 2014, 8:44 PM EST
Stored procedure are precompiled objects. so execution time is much better than inline queries.
Lakshmanan Sethu SankaranarayanPosted Feb 11, 2014, 4:02 PM EST
1. Stored procedures are used for performance factor
2. Also Stored procedures are secure than Inline queries
suresh ShewalePosted Feb 10, 2014, 3:12 PM EST






