I need to write a simple query,which one is better select
statement or stored procedure?and why?
Answers were Sorted based on User's Feedback
Answer / sudipta santra
A simple query because through query we can throw the result
of the data based on conditions but in stored procedure we
can not , as the procedure is used for the specific time
based for the specific value return through out/IN out .
A simple query is best. But it is wrong that we can not do
through a proc, we can do but the effort will take more.
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / john
simple query s best as we can issue query by giving various
condition and it will not get stored in database where as a
procedure will get stored in database and gotta occupy
memory.so its waste of memory and time to create a
procedure rather than issuing a si9ngle query
Is This Answer Correct ? | 4 Yes | 0 No |
What is sqlcommand?
How to retrieve Duplicate Rows only in a Table? Suppose if a Table Name is "Education". It consists of multiple columns. Then if we insert rows into this table with duplicate records then how can we retrieve only duplicate records from that table?
28 Answers Alps, Aricent, Bank Of America, Wipro,
Which one is faster ienumerable or iqueryable?
What is sql basics?
what is sp_pkeys? : Transact sql
how u can find the n row from a table?
What is the purpose of the partition table?
what are the join types in tsql? : Transact sql
what is a cursor? : Sql dba
Explain what is sql?
What are the popular database management systems in the it industry?
What is use of package in pl sql?