what is the use of stored procedure which has only one
select statement over simple select statment query ? Why to
write a stored procedure then ?

Answers were Sorted based on User's Feedback



what is the use of stored procedure which has only one select statement over simple select statmen..

Answer / ravinder kumar

Because stored procedure are pre compiled and need not to
compile again .it is faster than simple query.

Is This Answer Correct ?    5 Yes 0 No

what is the use of stored procedure which has only one select statement over simple select statmen..

Answer / rkasha

SP are better than SQL Query, but UDF (User Defined
Function) are even beter. Since it can be called in any
query and will return multiple records

Is This Answer Correct ?    0 Yes 0 No

what is the use of stored procedure which has only one select statement over simple select statmen..

Answer / hardik

execution of the stored procedure is faster than simple sql
statement query.

for e.g.

select * from tablename is simple sql statement

create proc temp
as
begin

select * from tablename

end

above is sp of that statement.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Is .net is a language?

0 Answers  


I'm having some trouble with cas. How can I troubleshoot the problem?

0 Answers  


Explain assemblies in .net?

0 Answers  


Explain about .Net products?

0 Answers  


Do you know the difference between the stack and the heap?

0 Answers  


What makes .net core cross platform?

0 Answers  


What are channels in .NET Remoting?

2 Answers   Rolta,


i have 2 functions, int add(int a,int b); double add(int a,int b); does this code implement overloading? if not what will be the error?

4 Answers   Deloitte,


How WSDL is stored ?

1 Answers   PPS, TCS,


What is Event - Delegate? clear syntax for writing a event delegate

0 Answers  


Should I implement finalize on my class? Should I implement idisposable?

0 Answers  


How to create properties and methods using controls?

0 Answers   CGI,


Categories