I need to write a simple query,which one is better select
statement or stored procedure?and why?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

486


Why is theta join required?

655


Why partition by is used in sql?

548


What is use of trigger?

505


What is a sql statement?

523






What are commit, rollback, and savepoint?

565


What is offset in sql query?

589


How to return multiple rows from the stored procedure?

512


Can you load data into multiple tables at once? : aql loader

595


How to disable a trigger name update_salary?

665


What is pl sql and why it is used for?

565


How do I save a stored procedure?

514


what is commit? : Sql dba

609


What is denormalization in a database?

585


What are analytical functions in sql?

529