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

what all type of application can u make with visual studio?

3 Answers   Manhattan,


1 mor thing guyz....can i go for C# directly without C++ /JAVA knowledge for dot net ..???

3 Answers  


What are the new features in .net core?

0 Answers  


How anonymous method is different from a lambda expression?

0 Answers  


What are the deferred execution and the immediate execution in linq?

0 Answers  






Explain me what is a design pattern and what is it for?

0 Answers  


How many types of generations are there in a garbage collector?

0 Answers  


Explain the different types of proxy patterns?

0 Answers  


Difference between machine.config and web.config?

0 Answers  


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

0 Answers  


Describe ways of cleaning up objects.

2 Answers   Wipro,


How to implement datagrid in.net? How would you make a combo-box appear in one column of a datagrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for datagrid methods. What is the access specifier used for that methods in the code behind file and why?

0 Answers  


Categories